diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-08-24 12:36:18 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-08-24 12:36:18 +0000 |
| commit | c832a58ee005b324f0a2e76a7becfdb588045593 (patch) | |
| tree | 3b41d019083a6415878d643a634aaa5358133aa6 | |
| parent | 42ade9ef07c712c192add50276178c5231e40484 (diff) | |
| download | lasso-c832a58ee005b324f0a2e76a7becfdb588045593.tar.gz lasso-c832a58ee005b324f0a2e76a7becfdb588045593.tar.xz lasso-c832a58ee005b324f0a2e76a7becfdb588045593.zip | |
*** empty log message ***
| -rw-r--r-- | lasso/id-ff/federation_termination.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lasso/id-ff/federation_termination.c b/lasso/id-ff/federation_termination.c index 038b2d81..752ba9c6 100644 --- a/lasso/id-ff/federation_termination.c +++ b/lasso/id-ff/federation_termination.c @@ -415,9 +415,9 @@ lasso_federation_termination_validate_notification(LassoFederationTermination *d LassoFederation *federation; LassoNode *assertion; LassoNode *nameIdentifier; - gint ret = 0; - gint signature_check; GError *err = NULL; + gint signature_check; + gint ret = 0; profile = LASSO_PROFILE(defederation); @@ -441,13 +441,13 @@ lasso_federation_termination_validate_notification(LassoFederationTermination *d /* if HTTP-Redirect protocol profile, set the federation termination service return url */ profile->msg_url = NULL; profile->msg_body = NULL; - provider = lasso_server_get_provider(profile->server, profile->remote_providerID, NULL); - if (provider == NULL) { - message(G_LOG_LEVEL_CRITICAL, "Provider not found\n"); - ret = -1; - goto done; - } - if (profile->http_request_method==lassoHttpMethodRedirect) { + if (profile->http_request_method == lassoHttpMethodRedirect) { + provider = lasso_server_get_provider_ref(profile->server, profile->remote_providerID, NULL); + if (provider == NULL) { + message(G_LOG_LEVEL_CRITICAL, "Provider not found\n"); + ret = -1; + goto done; + } profile->msg_url = lasso_provider_get_federationTerminationServiceReturnURL(provider, profile->provider_type, NULL); |
