]> 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:46:07 +0000 (09:46 +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.

(cherry picked from commit dda5ba53dfaa3926b16cf3c786ae2395ced89ca3)

lib/isc/interfaceiter.c

index 566c5bd4651b8bf15f06db73825a2a33933b89fd..ed06dce2654501b3b5b73832c277a09044c1b014 100644 (file)
@@ -367,6 +367,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;