diff options
author | David Brodski <bid@softing.com> | 2014-05-13 18:06:27 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-08-26 17:37:16 -0400 |
commit | 6cc31d4212c839c61b079af15b0dd43572ef8e68 (patch) | |
tree | a5a76d7fd9e7b3bb70bf3f7982c750a0b76854d2 | |
parent | 06f6c551078fbdbb86dec469b2a280d1323153fb (diff) |
Fixed problem with multiple load-unload of comp zlib
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 8cbb153357896c4b224e0678550944f7851bc3b2)
-rw-r--r-- | crypto/comp/c_zlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/comp/c_zlib.c b/crypto/comp/c_zlib.c index 6731af8b0d..9c32614d3c 100644 --- a/crypto/comp/c_zlib.c +++ b/crypto/comp/c_zlib.c @@ -404,8 +404,9 @@ COMP_METHOD *COMP_zlib(void) void COMP_zlib_cleanup(void) { #ifdef ZLIB_SHARED - if (zlib_dso) + if (zlib_dso != NULL) DSO_free(zlib_dso); + zlib_dso = NULL; #endif } |