[cpp-xmltooling] branch master updated: Add a nullptr check.
Scott Cantor
cantor.2 at osu.edu
Wed Oct 24 16:16:53 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-xmltooling.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=66a6a9a21bf693fd75ae1738362ed35ef5c9cab9
The following commit(s) were added to refs/heads/master by this push:
new 66a6a9a Add a nullptr check.
66a6a9a is described below
commit 66a6a9a21bf693fd75ae1738362ed35ef5c9cab9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Oct 24 16:16:34 2018 -0400
Add a nullptr check.
---
xmltooling/security/impl/InlineKeyResolver.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/xmltooling/security/impl/InlineKeyResolver.cpp b/xmltooling/security/impl/InlineKeyResolver.cpp
index e15118c..c479207 100644
--- a/xmltooling/security/impl/InlineKeyResolver.cpp
+++ b/xmltooling/security/impl/InlineKeyResolver.cpp
@@ -71,6 +71,9 @@ namespace xmltooling {
}
KeyInfo* getKeyInfo(bool compact=false) const {
+ if (!m_credctx)
+ return nullptr;
+
KeyInfo* ret = m_credctx->getKeyInfo() ? m_credctx->getKeyInfo()->cloneKeyInfo() : nullptr;
if (ret) {
ret->setId(nullptr);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list