]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Ignore errno returned from rewind() in the interface iterator
authorOndřej Surý <ondrej@isc.org>
Thu, 15 Aug 2024 07:12:18 +0000 (09:12 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 19 Aug 2024 09:42:55 +0000 (09:42 +0000)
The clang-scan 19 has reported that we are ignoring errno after the call
to rewind().  As we don't really care about the result, just silence the
error, the whole code will be removed in the development version anyway
as it is not needed.

lib/isc/interfaceiter.c

index ab0f35acab3512148c78f36688d66445e4b24fde..dfe44cac368c681c7057d57413a9cfa234019736 100644 (file)
@@ -366,6 +366,7 @@ static void
 linux_if_inet6_first(isc_interfaceiter_t *iter) {
        if (iter->proc != NULL) {
                rewind(iter->proc);
+               errno = 0; /* Ignore the errno */
                (void)linux_if_inet6_next(iter);
        } else {
                iter->valid = ISC_R_NOMORE;