projects
/
shibboleth
/
sp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix leaks in identifier generation
[shibboleth/sp.git]
/
shibsp
/
handler
/
impl
/
SAML2SessionInitiator.cpp
diff --git
a/shibsp/handler/impl/SAML2SessionInitiator.cpp
b/shibsp/handler/impl/SAML2SessionInitiator.cpp
index
7b13888
..
2e10df3
100644
(file)
--- a/
shibsp/handler/impl/SAML2SessionInitiator.cpp
+++ b/
shibsp/handler/impl/SAML2SessionInitiator.cpp
@@
-713,7
+713,9
@@
pair<bool,long> SAML2SessionInitiator::doRequest(
}
}
}
}
- req->setID(SAMLConfig::getConfig().generateIdentifier());
+ XMLCh* genid = SAMLConfig::getConfig().generateIdentifier();
+ req->setID(genid);
+ XMLString::release(&genid);
req->setIssueInstant(time(nullptr));
scoped_ptr<AuthnRequestEvent> ar_event(newAuthnRequestEvent(app, httpRequest));
req->setIssueInstant(time(nullptr));
scoped_ptr<AuthnRequestEvent> ar_event(newAuthnRequestEvent(app, httpRequest));