From c214735c0c146889d74ac35b39e346e0a72edec2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 6 Oct 2022 10:11:55 +0200 Subject: [PATCH] ednscookies: Fix another store_truncates_time_t coverity report The truncation is due to DNS specific protocol properties. Fixes Coverity CID 380097. --- pdns/ednscookies.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/ednscookies.cc b/pdns/ednscookies.cc index 501f0b84f2..5e57f04a86 100644 --- a/pdns/ednscookies.cc +++ b/pdns/ednscookies.cc @@ -87,6 +87,7 @@ bool EDNSCookiesOpt::isValid(const string& secret, const ComboAddress& source) c uint32_t ts; memcpy(&ts, &server[4], sizeof(ts)); ts = ntohl(ts); + // coverity[store_truncates_time_t] uint32_t now = static_cast(time(nullptr)); // RFC 9018 section 4.3: // The DNS server -- 2.47.2