From 36654cc6983bec88a7a58968cb08856270eea17e Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Fri, 16 Feb 2024 10:59:48 +0100 Subject: [PATCH] ixfrdist: fix coverity 1534661 and 1534662 --- pdns/ixfrdist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.47.2