X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2POSTDecoder.cpp;h=8b953e3997475cabfd4fa41991ec35a1c3e2d190;hp=ebb2ec268c5c9590c57ed22a08fc3a5fa9736628;hb=750aa26530f9e8993eae37cd9e68e25497be66b5;hpb=571218290715e97099bcd65249abbee4e1ef63bf diff --git a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp index ebb2ec2..8b953e3 100644 --- a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp @@ -128,7 +128,7 @@ XMLObject* SAML2POSTDecoder::decode( } // Run through the policy. - policy.evaluate(genericRequest, *root); + policy.evaluate(*root, &genericRequest); } catch (XMLToolingException& ex) { // This is just to maximize the likelihood of attaching a source to the message for support purposes. @@ -165,6 +165,5 @@ XMLObject* SAML2POSTDecoder::decode( annotateException(&ex,provider); // throws it } - xmlObject.release(); - return root; + return xmlObject.release(); }