From: Richard Levitte Date: Fri, 4 Oct 2002 13:04:44 +0000 (+0000) Subject: If we're loading libz dynamically, and COMP_zlib() is called more than once, X-Git-Tag: OpenSSL_0_9_7-beta4~150 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c8756f02408394596aacfcec90233ea43c311db;p=oweals%2Fopenssl.git If we're loading libz dynamically, and COMP_zlib() is called more than once, only the first call would provide the correct result. PR: 277 --- diff --git a/crypto/comp/c_zlib.c b/crypto/comp/c_zlib.c index cd2f8a491b..8c0876151a 100644 --- a/crypto/comp/c_zlib.c +++ b/crypto/comp/c_zlib.c @@ -208,11 +208,11 @@ COMP_METHOD *COMP_zlib(void) = (inflateInit__ft) DSO_bind_func(zlib_dso, "inflateInit_"); zlib_loaded++; - meth = &zlib_method; } } -#elif defined(ZLIB) +#endif +#if defined(ZLIB) || defined(ZLIB_SHARED) meth = &zlib_method; #endif