From: W.C.A. Wijngaards Date: Fri, 24 Jul 2026 12:44:44 +0000 (+0200) Subject: - Fix sign of comparison warning in shared ports setup. X-Git-Tag: release-1.26.0rc1~5 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8f7411057f655cda8f06bc0fac81a01eed926dd2;p=thirdparty%2Funbound.git - Fix sign of comparison warning in shared ports setup. --- diff --git a/doc/Changelog b/doc/Changelog index 6285c9ea8..995040ef3 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -23,6 +23,7 @@ and shared_ports_return_port when compiled without threads. - Fix to guard access to shared ports interface array during set up, for analyzer. + - Fix sign of comparison warning in shared ports setup. 23 July 2026: Wouter - Updated credits for Xuanchao Xie in 22 july changelog. diff --git a/services/outside_network.c b/services/outside_network.c index 4210506fe..0f22c920f 100644 --- a/services/outside_network.c +++ b/services/outside_network.c @@ -4128,14 +4128,14 @@ static int shared_ports_alloc_ifs(struct shared_ports* shp, char** ifs, int i; for(i=0; inum_ip6) { + (int)done_6 < shp->num_ip6) { if(!shared_ports_setup_if(&shp->ip6_ifs[done_6], ifs[i], availports, numavailports)) return 0; done_6++; } if(!str_is_ip6(ifs[i]) && do_ip4 && - done_4 < shp->num_ip4) { + (int)done_4 < shp->num_ip4) { if(!shared_ports_setup_if(&shp->ip4_ifs[done_4], ifs[i], availports, numavailports)) return 0;