projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a21d1f2
)
Check for NULL in Decryptor destructor
author
Scott Cantor
<cantor.2@osu.edu>
Fri, 11 Aug 2006 03:28:37 +0000
(
03:28
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Fri, 11 Aug 2006 03:28:37 +0000
(
03:28
+0000)
xmltooling/encryption/impl/Decrypter.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/encryption/impl/Decrypter.cpp
b/xmltooling/encryption/impl/Decrypter.cpp
index
0a1fe09
..
a0fbc7c
100644
(file)
--- a/
xmltooling/encryption/impl/Decrypter.cpp
+++ b/
xmltooling/encryption/impl/Decrypter.cpp
@@
-15,9
+15,9
@@
*/
/**
- *
En
crypter.cpp
+ *
De
crypter.cpp
*
- * Methods for
en
crypting XMLObjects and other data.
+ * Methods for
de
crypting XMLObjects and other data.
*/
#include "internal.h"
@@
-39,7
+39,8
@@
using namespace std;
Decrypter::~Decrypter()
{
- XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->releaseCipher(m_cipher);
+ if (m_cipher)
+ XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->releaseCipher(m_cipher);
delete m_resolver;
delete m_KEKresolver;
}