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
This commit is contained in:
Richard Levitte 2002-10-04 13:04:37 +00:00
parent 70e96dcf59
commit e984b2af64

View File

@ -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