]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ab: don't call malloc_init for OpenSSL 1.1.0
authorJacob Champion <jchampion@apache.org>
Mon, 22 May 2017 16:40:54 +0000 (16:40 +0000)
committerJacob Champion <jchampion@apache.org>
Mon, 22 May 2017 16:40:54 +0000 (16:40 +0000)
Patch by rjung.

The 1.1.0 compatibility macro for OpenSSL_malloc_init() causes problems
when mixed with procedure linkage stubs with some toolchains (e.g. GCC).
OpenSSL's malloc implementation doesn't recognize that the PLT stub
points back to it, which leads to infinite recursion.

Since the 1.1.0 documentation states that calling this function
explicitly is no longer necessary except "in certain shared-library
situations"(?), get rid of it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1795830 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 5fcc1da3332a7b846d6cae2388475f4cfeba177a..09df8656d8bf04993bdb2725c7664fe924fb69d6 100644 (file)
@@ -2576,8 +2576,6 @@ int main(int argc, const char * const argv[])
 #else
 #if OPENSSL_VERSION_NUMBER < 0x10100000L
     CRYPTO_malloc_init();
-#else
-    OPENSSL_malloc_init();
 #endif
 #endif
     SSL_load_error_strings();