From: W.C.A. Wijngaards Date: Fri, 11 Oct 2024 06:51:14 +0000 (+0200) Subject: - Fix to disable detection of quic configured ports when quic is X-Git-Tag: release-1.22.0~6 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1b7e14dc39256b172a93412e23a60cde86a7548c;p=thirdparty%2Funbound.git - Fix to disable detection of quic configured ports when quic is not compiled in. --- diff --git a/doc/Changelog b/doc/Changelog index e88b887b8..1346031f2 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +11 October 2024: Wouter + - Fix to disable detection of quic configured ports when quic is + not compiled in. + 10 October 2024: Wouter - Fix cookie_file test sporadic fails for time change during the test. diff --git a/util/config_file.c b/util/config_file.c index 879764bd9..aca0039d4 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -2832,10 +2832,17 @@ if_is_dnscrypt(const char* ifname, const char* port, int dnscrypt_port) int if_is_quic(const char* ifname, const char* port, int quic_port) { +#ifndef HAVE_NGTCP2 + (void)ifname; + (void)port; + (void)quic_port; + return 0; +#else char* p = strchr(ifname, '@'); if(!p && atoi(port) == quic_port) return 1; if(p && atoi(p+1) == quic_port) return 1; return 0; +#endif }