From d627cdfb76bac2ba9f349a0d4312342de104b4fa Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Thu, 29 Jul 2004 14:11:26 +0000 Subject: *** empty log message *** --- python/protocols/py_logout_request.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/protocols/py_logout_request.c') diff --git a/python/protocols/py_logout_request.c b/python/protocols/py_logout_request.c index 6a9c8b6f..e8d36186 100644 --- a/python/protocols/py_logout_request.c +++ b/python/protocols/py_logout_request.c @@ -75,6 +75,10 @@ PyObject *logout_request_new_from_export(PyObject *self, PyObject *args) { else return NULL; request = lasso_logout_request_new_from_export(buffer, type); + if(request==NULL){ + Py_INCREF(Py_None); + return (Py_None); + } return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); } -- cgit