X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml2%2Fprofile%2Fimpl%2FBearerConfirmationRule.cpp;h=91a263203d90b5196b65966a5d01d6a553bfaf06;hb=55c92398f169010549c3a667ec90817ac69b5b95;hp=0541c581576568b3d88935c9eb4dfd58b8baf0bf;hpb=96bb0cc35b86b6633f0c6aa4ba8f39f62d020834;p=shibboleth%2Fcpp-opensaml.git 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;