diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-08-24 15:19:31 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-08-24 15:19:31 +0000 |
| commit | b7b6579eb0482500b43ee797d99c86c908ba8e66 (patch) | |
| tree | d83ee77f086ff52a93eaf69562cf32cb9613f4f9 | |
| parent | 52311ca54daa2faab10fe369e341915634331fb5 (diff) | |
don't check for remote provider id before checking for possible empty answer.
| -rw-r--r-- | lasso/id-ff/logout.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lasso/id-ff/logout.c b/lasso/id-ff/logout.c index 888174b8..3ddb8477 100644 --- a/lasso/id-ff/logout.c +++ b/lasso/id-ff/logout.c @@ -160,13 +160,6 @@ lasso_logout_build_response_msg(LassoLogout *logout) profile = LASSO_PROFILE(logout); - if (profile->remote_providerID == NULL || profile->response == NULL) { - /* no remote provider id set or no response set, this means - * this function got called before validate_request, probably - * because there were no active session */ - return critical_error(LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND); - } - if (profile->response == NULL) { if (profile->http_request_method == LASSO_HTTP_METHOD_SOAP) { profile->response = lasso_lib_logout_response_new_full( @@ -187,6 +180,13 @@ lasso_logout_build_response_msg(LassoLogout *logout) } } + if (profile->remote_providerID == NULL || profile->response == NULL) { + /* no remote provider id set or no response set, this means + * this function got called before validate_request, probably + * because there were no active session */ + return critical_error(LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND); + } + /* build logout response message */ if (profile->http_request_method == LASSO_HTTP_METHOD_SOAP) { profile->msg_url = NULL; |
