From 91925e3c549d33179ccc2d806b5974d33aa70a8a Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 28 Aug 2009 01:35:34 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/CPPOST-33 --- saml/saml2/profile/impl/BrowserSSOProfile20Validator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); } -- 2.1.4