]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: fix again a libressl build failure after the openssl FD leak fix
authorWilly Tarreau <w@1wt.eu>
Thu, 9 May 2019 11:53:28 +0000 (13:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 May 2019 11:55:33 +0000 (13:55 +0200)
As with every single OpenSSL fix, LibreSSL build broke again, this time
after commit 56996dabe ("BUG/MINOR: mworker/ssl: close OpenSSL FDs on
reload"). A definitive solution will have to be found quickly. For now,
let's exclude libressl from the version test.

This patch must be backported to 1.9 since the fix above was already
backported there.

src/haproxy.c

index 4c371254e1ac76a18eb555981c1298d805d955cf..30ccded61cedeae45c671238879aa4f328876731 100644 (file)
@@ -590,7 +590,7 @@ void mworker_reload()
                ptdf->fct();
        if (fdtab)
                deinit_pollers();
-#if defined(USE_OPENSSL) && (OPENSSL_VERSION_NUMBER >= 0x10101000L)
+#if defined(USE_OPENSSL) && (OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(LIBRESSL_VERSION_NUMBER)
        if (global.ssl_used_frontend || global.ssl_used_backend)
                /* close random device FDs */
                RAND_keep_random_devices_open(0);