]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to disable detection of quic configured ports when quic is
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Oct 2024 06:51:14 +0000 (08:51 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Oct 2024 06:51:14 +0000 (08:51 +0200)
  not compiled in.

doc/Changelog
util/config_file.c

index e88b887b8ca08c3653f9c2275e7b8a3a533ee048..1346031f24c10958759ee1c7188feaaf44a6e30b 100644 (file)
@@ -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.
index 879764bd9ed65708e2405a1296ab409fc97ad8d0..aca0039d487ad6364d8cbfa11123514055e74b41 100644 (file)
@@ -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
 }