Check for empty string in correlation property.
authorcantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Thu, 19 Mar 2009 02:06:35 +0000 (02:06 +0000)
committercantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Thu, 19 Mar 2009 02:06:35 +0000 (02:06 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/branches/REL_2@454 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

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;