diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2014-02-23 12:27:41 -0800 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2014-02-23 12:27:41 -0800 |
| commit | 2921400083fc4fe873c483c99326daec398c68fe (patch) | |
| tree | c7f78fb979e14916df7b950d4ab4e6bd538e93c6 /common/ssl_calls.c | |
| parent | 8e4520b3c3e67ef4c38489ada820236d5287aac1 (diff) | |
| download | xrdp-proprietary-2921400083fc4fe873c483c99326daec398c68fe.tar.gz xrdp-proprietary-2921400083fc4fe873c483c99326daec398c68fe.zip | |
common: check for nil in fips cleanup
Diffstat (limited to 'common/ssl_calls.c')
| -rw-r--r-- | common/ssl_calls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/ssl_calls.c b/common/ssl_calls.c index 0c7e3f0d..92569be5 100644 --- a/common/ssl_calls.c +++ b/common/ssl_calls.c @@ -199,7 +199,10 @@ ssl_des3_info_delete(void *des3) EVP_CIPHER_CTX *des3_ctx; des3_ctx = (EVP_CIPHER_CTX *) des3; - EVP_CIPHER_CTX_cleanup(des3_ctx); + if (des3_ctx != 0) + { + EVP_CIPHER_CTX_cleanup(des3_ctx); + } } /*****************************************************************************/ |
