]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: check: fix QUIC check test when QUIC disabled
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Nov 2025 16:27:53 +0000 (17:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Nov 2025 16:27:53 +0000 (17:27 +0100)
Latest commit ef206d441c ("MINOR: check: ensure QUIC checks configuration
coherency") introduced a regression when QUIC is not compiled in. Indeed,
not specifying a check proto sets mux_proto to NULL, which also happens to
be the value of get_mux_proto("QUIC"), so it complains about QUIC. Let's
add a non-null check in addition to this.

No backport is needed.

src/check.c

index ba15a7283dd5934c22d77421657099574b63d0df..002ee88c74438a20f29d2112abd4cf24d09e6bed 100644 (file)
@@ -1877,7 +1877,7 @@ int init_srv_check(struct server *srv)
                }
        }
        else {
-               if (srv->check.mux_proto == get_mux_proto(ist("quic"))) {
+               if (srv->check.mux_proto && srv->check.mux_proto == get_mux_proto(ist("quic"))) {
                        ha_alert("config: %s '%s': QUIC checks on non-QUIC server '%s' is not yet supported.\n",
                                 proxy_type_str(srv->proxy), srv->proxy->id, srv->id);
                        ret |= ERR_ALERT | ERR_FATAL;