From: Ondřej Surý Date: Thu, 15 Aug 2024 07:12:18 +0000 (+0200) Subject: Ignore errno returned from rewind() in the interface iterator X-Git-Tag: v9.18.30~27^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e707ee09465e7929b2b5e39d1aff46277c0fa676;p=thirdparty%2Fbind9.git Ignore errno returned from rewind() in the interface iterator 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) --- diff --git a/lib/isc/interfaceiter.c b/lib/isc/interfaceiter.c index 566c5bd4651..ed06dce2654 100644 --- a/lib/isc/interfaceiter.c +++ b/lib/isc/interfaceiter.c @@ -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;