]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Annotate that we ignore the return value of if_indextoname.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:04:00 +0000 (09:04 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:04:00 +0000 (09:04 +0100)
doc/Changelog
services/listen_dnsport.c

index 0ccec087a9e00775fc524ce0c958e329477315fe..268d51ff2e3ca776f27a77dce9cdb65ea5ff439e 100644 (file)
@@ -1,3 +1,6 @@
+28 January 2022: Wouter
+       - Annotate that we ignore the return value of if_indextoname.
+
 26 January 2022: George
        - Merge PR #408 from fobser: Prevent a few more yacc clashes.
        - Merge PR #275 from Roland van Rijswijk-Deij: Add feature to return the
index 629d4de722e4f76742a6a7553ab13360dcd0c2de..b790660f2396f896cb73485d27acdaa546f6b1af 100644 (file)
@@ -1456,7 +1456,7 @@ resolve_ifa_name(struct ifaddrs *ifas, const char *search_ifa, char ***ip_addres
                                log_err("inet_ntop failed");
                                return 0;
                        }
-                       if_indextoname(in6->sin6_scope_id,
+                       (void)if_indextoname(in6->sin6_scope_id,
                                (char *)if_index_name);
                        if (strlen(if_index_name) != 0) {
                                snprintf(addr_buf, sizeof(addr_buf),