From e984b2af64e7bda295edb5c963e1b8932112230e Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 4 Oct 2002 13:04:37 +0000 Subject: [PATCH] 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 --- crypto/comp/c_zlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- GitLab