]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
update the clock because we now make decisions on absolutely correct times
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jan 2015 15:56:21 +0000 (16:56 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 22 Jan 2015 15:56:40 +0000 (16:56 +0100)
pdns/lwres.cc

index 90b3e8a0bbdebe2e4402ca8470d9d926424e81c5..c60ed8a32c4d467d59208c909feedf76aa0b21fc 100644 (file)
@@ -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;