projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7c0e61
)
Check for empty payload.
author
Scott Cantor
<cantor.2@osu.edu>
Thu, 10 Jan 2008 15:59:03 +0000
(15:59 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Thu, 10 Jan 2008 15:59:03 +0000
(15:59 +0000)
saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
patch
|
blob
|
history
diff --git
a/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
b/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
index
c5f9209
..
47fc608
100644
(file)
--- a/
saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
+++ b/
saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp
@@
-153,6
+153,8
@@
XMLObject* SAML2ArtifactDecoder::decode(
// Now extract details from the payload and check that message.
XMLObject* payload = response->getPayload();
+ if (!payload)
+ throw BindingException("ArtifactResponse message did not contain a protocol message.");
extractMessageDetails(*payload, genericRequest, samlconstants::SAML20P_NS, policy);
policy.evaluate(*payload, &genericRequest);