From: Scott Cantor Date: Fri, 28 Aug 2009 01:35:34 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/CPPOST-33 X-Git-Tag: 2.3~32 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=91925e3c549d33179ccc2d806b5974d33aa70a8a https://issues.shibboleth.net/jira/browse/CPPOST-33 --- diff --git a/saml/saml2/profile/impl/BrowserSSOProfile20Validator.cpp b/saml/saml2/profile/impl/BrowserSSOProfile20Validator.cpp index 5a73d50..67b43a9 100644 --- a/saml/saml2/profile/impl/BrowserSSOProfile20Validator.cpp +++ b/saml/saml2/profile/impl/BrowserSSOProfile20Validator.cpp @@ -40,7 +40,7 @@ void BrowserSSOProfileValidator::validateAssertion(const Assertion& assertion) c Category& log = Category::getInstance(SAML_LOGCAT".AssertionValidator"); // The assertion MUST have proper confirmation requirements. - const char* msg=NULL; + const char* msg="assertion is missing bearer SubjectConfirmation"; const Subject* subject = assertion.getSubject(); if (subject) { const vector& confs = subject->getSubjectConfirmations(); @@ -86,6 +86,6 @@ void BrowserSSOProfileValidator::validateAssertion(const Assertion& assertion) c } } - log.error(msg); + log.error(msg ? msg : "no error message"); throw ValidationException("Unable to locate satisfiable bearer SubjectConfirmation in assertion."); }