From: Scott Cantor Date: Fri, 27 Nov 2009 19:44:16 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-269 X-Git-Tag: 2.3.1~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=536f8c5dc30157a089440dc251181f24eda39f7c https://issues.shibboleth.net/jira/browse/SSPCPP-269 --- diff --git a/shibsp/handler/impl/SAML2LogoutInitiator.cpp b/shibsp/handler/impl/SAML2LogoutInitiator.cpp index 90be51b..e7651c9 100644 --- a/shibsp/handler/impl/SAML2LogoutInitiator.cpp +++ b/shibsp/handler/impl/SAML2LogoutInitiator.cpp @@ -365,7 +365,7 @@ pair SAML2LogoutInitiator::doRequest( // Check the status, looking for non-success or a partial logout code. const StatusCode* sc = logoutResponse->getStatus() ? logoutResponse->getStatus()->getStatusCode() : NULL; bool partial = (!sc || !XMLString::equals(sc->getValue(), StatusCode::SUCCESS)); - if (!partial) { + if (!partial && sc->getStatusCode()) { // Success, but still need to check for partial. partial = XMLString::equals(sc->getStatusCode()->getValue(), StatusCode::PARTIAL_LOGOUT); }