From 55c92398f169010549c3a667ec90817ac69b5b95 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 27 Aug 2009 19:16:31 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/CPPOST-33 --- saml/saml2/profile/impl/BearerConfirmationRule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.1.4