If we're loading libz dynamically, and COMP_zlib() is called more than once,
[openssl.git] / crypto / comp / c_zlib.c
index cd2f8a4..8c08761 100644 (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