]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: ssl: Spell HAVE_VANILLA_OPENSSL correctly
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 22 Jul 2026 16:33:28 +0000 (18:33 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 23 Jul 2026 15:20:14 +0000 (17:20 +0200)
Use HAVE_VANILLA_OPENSSL, which is what we actually define when we're
linked against OpenSSL, and not USE_VANILLA_OPENSSL.
Not using the right macro means we may start splicing with kTLS while
there are still data available in OpenSSL's internal buffers, leading to
data not being properly read.

This should be backported up to 3.3.

src/ssl_sock.c

index 36a2d1887bac63263e5a82ee73323f796c960c21..aa495dc57b8a196abf68f5597eee35baff26b35f 100644 (file)
@@ -8350,7 +8350,7 @@ static int ssl_sock_get_capability(struct connection *conn, void *xprt_ctx, enum
                        ret = arg;
                        if ((ctx->flags & (SSL_SOCK_F_KTLS_RECV | SSL_SOCK_F_KTLS_SEND)) ==
                                          (SSL_SOCK_F_KTLS_RECV | SSL_SOCK_F_KTLS_SEND)) {
-#ifdef USE_VANILLA_OPENSSL
+#ifdef HAVE_VANILLA_OPENSSL
                                /*
                                 * We can splice yet if there's still
                                 * data in OpenSSL internal buffers