From: bert hubert Date: Thu, 22 Jan 2015 15:56:21 +0000 (+0100) Subject: update the clock because we now make decisions on absolutely correct times X-Git-Tag: rec-3.7.0-rc2~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c4765c104bacc146533217bcc843efb244a8086;p=thirdparty%2Fpdns.git update the clock because we now make decisions on absolutely correct times --- 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;