From: bert hubert Date: Tue, 10 Oct 2017 12:41:01 +0000 (+0200) Subject: if there was an mtasker waiter with no associated timeout, we would loop forever... X-Git-Tag: rec-4.1.0-rc2~46^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=887316ee6c103850789ed9f3cfcf462b0dce73d8;p=pdns if there was an mtasker waiter with no associated timeout, we would loop forever in MTasker::schedule() --- diff --git a/pdns/mtasker.cc b/pdns/mtasker.cc index 43294c953..9fcb7d31f 100644 --- a/pdns/mtasker.cc +++ b/pdns/mtasker.cc @@ -344,6 +344,8 @@ templatebool MTasker::schedule(struct timeval* n } else if(i->ttd.tv_sec) break; + else + ++i; } } return false;