]> granicus.if.org Git - pdns/commitdiff
if there was an mtasker waiter with no associated timeout, we would loop forever...
authorbert hubert <bert.hubert@powerdns.com>
Tue, 10 Oct 2017 12:41:01 +0000 (14:41 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 10 Oct 2017 13:38:25 +0000 (15:38 +0200)
pdns/mtasker.cc

index 43294c9537cce1a005415dd9c86063c8cf926083..9fcb7d31f2dd6fd5dc58447c6a8611c2ba3caf49 100644 (file)
@@ -344,6 +344,8 @@ template<class Key, class Val>bool MTasker<Key,Val>::schedule(struct timeval*  n
       }
       else if(i->ttd.tv_sec)
         break;
+      else
+       ++i;
     }
   }
   return false;