diff options
author | Simo Sorce <simo@redhat.com> | 2013-10-17 00:53:17 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-10-18 15:26:37 -0400 |
commit | b01f6c6dcbc141abd528bfffee9aa513993e9c48 (patch) | |
tree | a54f3ba61d4441692eb1ee3533a008fe57bdfde0 | |
parent | 9aae9989eae728b66cd1476eb216c95bf3d28981 (diff) | |
download | gss-ntlmssp-b01f6c6dcbc141abd528bfffee9aa513993e9c48.tar.gz gss-ntlmssp-b01f6c6dcbc141abd528bfffee9aa513993e9c48.tar.xz gss-ntlmssp-b01f6c6dcbc141abd528bfffee9aa513993e9c48.zip |
Fix potential segfault condition in RC4_FREE
-rw-r--r-- | src/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto.c b/src/crypto.c index dd33b34..aabd399 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -209,7 +209,7 @@ int RC4_UPDATE(struct ntlm_rc4_handle *handle, void RC4_FREE(struct ntlm_rc4_handle **handle) { - if (!handle) return; + if (!handle || !*handle) return; EVP_CIPHER_CTX_cleanup(&(*handle)->ctx); safefree(*handle); } |