]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
1524911 Use of 32-bit time_t
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 16 Jan 2024 08:53:21 +0000 (09:53 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 16 Jan 2024 08:53:21 +0000 (09:53 +0100)
pdns/axfr-retriever.cc

index 09461f07a7de400b0d67de5504e76f2c6aca4e6e..f2630c9aebf47139e20e92ef42c533c21c84229b 100644 (file)
@@ -175,6 +175,7 @@ void AXFRRetriever::timeoutReadn(uint16_t bytes, uint16_t timeoutsec)
   int n=0;
   int numread;
   while(n<bytes) {
+    // coverity[store_truncates_time_t]
     int res=waitForData(d_sock, static_cast<int>(timeoutsec - (time(nullptr) - start)));
     if(res<0)
       throw ResolverException("Reading data from remote nameserver over TCP: "+stringerror());