X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSAML2Consumer.cpp;h=d8fc3ec39ca416974a278a5fae4738ae4e1bac46;hb=0d980d23b63369f144cf377696204c02babbd16f;hp=302fe0dd8bb34bad7af027896a5a03a4e8810f91;hpb=27f17e017c4befb21b065d27dab1e4573d11d922;p=shibboleth%2Fsp.git diff --git a/shibsp/handler/impl/SAML2Consumer.cpp b/shibsp/handler/impl/SAML2Consumer.cpp index 302fe0d..d8fc3ec 100644 --- a/shibsp/handler/impl/SAML2Consumer.cpp +++ b/shibsp/handler/impl/SAML2Consumer.cpp @@ -172,8 +172,7 @@ void SAML2Consumer::implementProtocol( ssoValidator.validateAssertion(*(*a)); // Address checking. - if (ssoValidator.getAddress()) - checkAddress(application, httpRequest, ssoValidator.getAddress()); + checkAddress(application, httpRequest, ssoValidator.getAddress()); // Track it as a valid token. tokens.push_back(*a); @@ -252,8 +251,7 @@ void SAML2Consumer::implementProtocol( ssoValidator.validateAssertion(*decrypted); // Address checking. - if (ssoValidator.getAddress()) - checkAddress(application, httpRequest, ssoValidator.getAddress()); + checkAddress(application, httpRequest, ssoValidator.getAddress()); // Track it as a valid token. tokens.push_back(decrypted);