From: bert hubert Date: Fri, 26 Dec 2014 14:19:23 +0000 (+0100) Subject: address #2002 differently. Closes #2002. X-Git-Tag: rec-3.7.0-rc1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8261085f592b40b8b7776d608f075787625ddc60;p=pdns address #2002 differently. Closes #2002. --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 116755537..1106f7da4 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -594,8 +594,8 @@ bool checkForCorrectTSIG(const DNSPacket* q, DNSBackend* B, string* keyname, str string message; q->getTSIGDetails(trc, keyname, &message); - uint64_t now = time(0); - if(abs(trc->d_time - now) > trc->d_fudge) { + int64_t now = time(0); + if(abs((int64_t)trc->d_time - now) > trc->d_fudge) { L<qdomain<<"' denied: TSIG (key '"<<*keyname<<"') time delta "<< abs(trc->d_time - now)<<" > 'fudge' "<d_fudge<