From: Charles-Henri Bruyand Date: Fri, 16 Feb 2024 09:59:48 +0000 (+0100) Subject: ixfrdist: fix coverity 1534661 and 1534662 X-Git-Tag: auth-5.0.0-alpha0~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13806%2Fhead;p=thirdparty%2Fpdns.git ixfrdist: fix coverity 1534661 and 1534662 --- diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index 1daec24b24..0f845f1ce5 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -397,10 +397,10 @@ static void communicatorThread() communicatorSendNotifications(sock4, sock6); std::this_thread::sleep_for(std::chrono::seconds(1)); } - if (sock4 > 0) { + if (sock4 >= 0) { closesocket(sock4); } - if (sock6 > 0) { + if (sock6 >= 0) { closesocket(sock6); } }