]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
ixfrdist: fix coverity 1534661 and 1534662 13806/head
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Fri, 16 Feb 2024 09:59:48 +0000 (10:59 +0100)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Fri, 16 Feb 2024 09:59:48 +0000 (10:59 +0100)
pdns/ixfrdist.cc

index 1daec24b245a8aca9cc82fc206951569e443a351..0f845f1ce50b68052261237df79a50b3c409ae6a 100644 (file)
@@ -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);
   }
 }