diff options
Diffstat (limited to 'python/protocols/py_logout_request.c')
-rw-r--r-- | python/protocols/py_logout_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
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))); } |