From 4c4765c104bacc146533217bcc843efb244a8086 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 22 Jan 2015 16:56:21 +0100 Subject: [PATCH] update the clock because we now make decisions on absolutely correct times --- pdns/lwres.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 90b3e8a0bb..c60ed8a32c 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -81,7 +81,8 @@ int asyncresolve(const ComboAddress& ip, const string& domain, int type, bool do int ret; DTime dt; - dt.setTimeval(*now); + dt.set(); + *now=dt.getTimeval(); errno=0; if(!doTCP) { int queryfd; -- 2.47.2