]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: proto_tcp: Properly report support for HAVE_TCP_MD5SIG feature
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 23 Jan 2026 10:32:20 +0000 (11:32 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 23 Jan 2026 10:40:54 +0000 (11:40 +0100)
Condition to report the support for HAVE_TCP_MD5SIG feature was inverted. It
is only an issue for the reg-test related to this feature.

This patch must be backported to 3.3.

src/proto_tcp.c

index 1182922ce2fbfe71bfd36920ab7e4065f39125e7..7278452634d573163665ab4ee568e33a150d5916 100644 (file)
@@ -1028,7 +1028,7 @@ static int tcp_get_info(struct connection *conn, long long int *info, int info_n
 
 static void __proto_tcp_init(void)
 {
-#if defined(__linux__) && !defined(TCP_MD5SIG)
+#if defined(__linux__) && defined(TCP_MD5SIG)
        hap_register_feature("HAVE_TCP_MD5SIG");
 #endif
 }