diff options
| -rw-r--r-- | lasso/Attic/protocols/logout_response.c | 4 | ||||
| -rw-r--r-- | python/protocols/py_logout_request.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lasso/Attic/protocols/logout_response.c b/lasso/Attic/protocols/logout_response.c index 03e53be0..5eeacc69 100644 --- a/lasso/Attic/protocols/logout_response.c +++ b/lasso/Attic/protocols/logout_response.c @@ -236,7 +236,7 @@ lasso_logout_response_new_from_request_export(gchar *buffer, request = lasso_logout_request_new_from_export(buffer, export_type); break; default: - message(G_LOG_LEVEL_ERROR, "Unkown export type\n"); + message(G_LOG_LEVEL_ERROR, "Invalid export type\n"); return(NULL); } @@ -295,7 +295,7 @@ lasso_logout_response_new_from_export(gchar *buffer, response = lasso_logout_response_new_from_soap(buffer); break; default: - message(G_LOG_LEVEL_ERROR, "Unknown export type\n"); + message(G_LOG_LEVEL_ERROR, "Invalid export type\n"); return(NULL); } 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))); } |
