From: Aki Tuomi Date: Sat, 19 Dec 2015 15:36:34 +0000 (+0200) Subject: Fix usage of abs() in saxfr X-Git-Tag: dnsdist-1.0.0-alpha1~49^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3066%2Fhead;p=thirdparty%2Fpdns.git Fix usage of abs() in saxfr --- diff --git a/pdns/saxfr.cc b/pdns/saxfr.cc index d67a431c82..08fa33b610 100644 --- a/pdns/saxfr.cc +++ b/pdns/saxfr.cc @@ -18,8 +18,8 @@ StatBag S; bool validateTSIG(const string& message, const TSIGHashEnum& algo, const DNSName& key, const string& secret, const TSIGRecordContent *trc) { int64_t now = time(0); - if(abs((int64_t)trc->d_time - now) > trc->d_fudge) { - cerr<<"TSIG (key '"<d_time - now)<<" > 'fudge' "<d_fudge<(trc->d_time) - now) > trc->d_fudge) { + cerr<<"TSIG (key '"<(trc->d_time) - now)<<" > 'fudge' "<d_fudge<