From: Scott Cantor Date: Thu, 27 Aug 2009 19:16:31 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/CPPOST-33 X-Git-Tag: 2.3~33 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=55c92398f169010549c3a667ec90817ac69b5b95 https://issues.shibboleth.net/jira/browse/CPPOST-33 --- diff --git a/saml/saml2/profile/impl/BearerConfirmationRule.cpp b/saml/saml2/profile/impl/BearerConfirmationRule.cpp index 0541c58..91a2632 100644 --- a/saml/saml2/profile/impl/BearerConfirmationRule.cpp +++ b/saml/saml2/profile/impl/BearerConfirmationRule.cpp @@ -84,7 +84,7 @@ bool BearerConfirmationRule::evaluate(const XMLObject& message, const GenericReq logging::Category& log = logging::Category::getInstance(SAML_LOGCAT".SecurityPolicyRule.BearerConfirmation"); - const char* msg=NULL; + const char* msg="assertion is missing bearer SubjectConfirmation"; const Subject* subject = a->getSubject(); if (subject) { const vector& confs = subject->getSubjectConfirmations(); @@ -137,7 +137,7 @@ bool BearerConfirmationRule::evaluate(const XMLObject& message, const GenericReq } } - log.error(msg); + log.error(msg ? msg : "no error message"); if (m_fatal) throw SecurityPolicyException("Unable to locate satisfiable bearer SubjectConfirmation in assertion."); return false;