Check for empty string in correlation property.
authorScott Cantor <cantor.2@osu.edu>
Thu, 19 Mar 2009 02:06:35 +0000 (02:06 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 19 Mar 2009 02:06:35 +0000 (02:06 +0000)
saml/saml2/profile/impl/BearerConfirmationRule.cpp

index b197226..0541c58 100644 (file)
@@ -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;