X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2RedirectDecoder.cpp;h=d2abd41b28459fbbdcc313263cf40182fca5aaa0;hp=5c1dc39d09615d590cd698628cc7e2d6aaa59297;hb=750aa26530f9e8993eae37cd9e68e25497be66b5;hpb=571218290715e97099bcd65249abbee4e1ef63bf diff --git a/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp b/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp index 5c1dc39..d2abd41 100644 --- a/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp @@ -143,7 +143,7 @@ XMLObject* SAML2RedirectDecoder::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. @@ -170,6 +170,5 @@ XMLObject* SAML2RedirectDecoder::decode( annotateException(&ex,provider); // throws it } - xmlObject.release(); - return root; + return xmlObject.release(); }