From 8df0379a3a1917e033e581700961923dd68678ab Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sat, 19 Dec 2015 17:36:34 +0200 Subject: [PATCH] Fix usage of abs() in saxfr --- pdns/saxfr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/saxfr.cc b/pdns/saxfr.cc index d67a431c8..08fa33b61 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<