From: Scott Cantor Date: Thu, 19 Mar 2009 02:06:35 +0000 (+0000) Subject: Check for empty string in correlation property. X-Git-Tag: 2.2.0~20 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=96bb0cc35b86b6633f0c6aa4ba8f39f62d020834 Check for empty string in correlation property. --- diff --git a/saml/saml2/profile/impl/BearerConfirmationRule.cpp b/saml/saml2/profile/impl/BearerConfirmationRule.cpp index b197226..0541c58 100644 --- a/saml/saml2/profile/impl/BearerConfirmationRule.cpp +++ b/saml/saml2/profile/impl/BearerConfirmationRule.cpp @@ -105,7 +105,7 @@ bool BearerConfirmationRule::evaluate(const XMLObject& message, const GenericReq } } - if (m_correlation && policy.getCorrelationID()) { + if (m_correlation && policy.getCorrelationID() && *(policy.getCorrelationID())) { if (!XMLString::equals(policy.getCorrelationID(), data ? data->getInResponseTo() : NULL)) { msg = "bearer confirmation failed with request correlation mismatch"; continue;