X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml1%2Fbinding%2Fimpl%2FSAML1POSTDecoder.cpp;fp=saml%2Fsaml1%2Fbinding%2Fimpl%2FSAML1POSTDecoder.cpp;h=7815c190156081f7ff1cfc7d27503dff6228763e;hb=4944f11c3a257a4661f71ce0744361cb4d229c30;hp=64cc627580d582f4a30947f6aa97a0f222c62938;hpb=83bca2b2337e2e2f7b7bafc5541fecbd36b20d7f;p=shibboleth%2Fopensaml2.git diff --git a/saml/saml1/binding/impl/SAML1POSTDecoder.cpp b/saml/saml1/binding/impl/SAML1POSTDecoder.cpp index 64cc627..7815c19 100644 --- a/saml/saml1/binding/impl/SAML1POSTDecoder.cpp +++ b/saml/saml1/binding/impl/SAML1POSTDecoder.cpp @@ -99,6 +99,9 @@ XMLObject* SAML1POSTDecoder::decode( if (!m_validate) SchemaValidators.validate(xmlObject.get()); + + // Run through the policy. + policy.evaluate(*response, &genericRequest); // Check recipient URL. auto_ptr_char recipient(response->getRecipient()); @@ -112,8 +115,5 @@ XMLObject* SAML1POSTDecoder::decode( throw BindingException("SAML message delivered with POST to incorrect server URL."); } - // Run through the policy. - policy.evaluate(*response, &genericRequest); - return xmlObject.release(); }