From c832a58ee005b324f0a2e76a7becfdb588045593 Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Tue, 24 Aug 2004 12:36:18 +0000 Subject: *** empty log message *** --- lasso/id-ff/federation_termination.c | 18 +++++++++--------- 1 file 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); -- cgit