]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compile of interface check code when dnscrypt or quic is
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 21 Jan 2025 09:13:48 +0000 (10:13 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 21 Jan 2025 09:13:48 +0000 (10:13 +0100)
  disabled.

doc/Changelog
util/config_file.c

index 8c9591884efce4bfb65d81d4070e9e064e45c01c..90916f45b0230007117529f33314c60135e6d657 100644 (file)
@@ -3,6 +3,10 @@
          protocols.
        - Port to string only when needed before getaddrinfo().
 
+21 January 2025: Wouter
+       - Fix compile of interface check code when dnscrypt or quic is
+         disabled.
+
 20 January 2025: Yorgos
        - Merge #1222: Unique DoT and DoH SSL contexts to allow for different
          ALPN.
index 19327c5bead8414b06c5f02b5c18bd9d7a9da945..5fef48ed89659754bef271e865bc9583dda98147 100644 (file)
@@ -2817,7 +2817,7 @@ if_is_dnscrypt(const char* ifname, int default_port, int dnscrypt_port)
        return if_listens_on(ifname, default_port, dnscrypt_port, NULL);
 #else
        (void)ifname;
-       (void)port;
+       (void)default_port;
        (void)dnscrypt_port;
        return 0;
 #endif
@@ -2830,7 +2830,7 @@ if_is_quic(const char* ifname, int default_port, int quic_port)
        return if_listens_on(ifname, default_port, quic_port, NULL);
 #else
        (void)ifname;
-       (void)port;
+       (void)default_port;
        (void)quic_port;
        return 0;
 #endif