From 887316ee6c103850789ed9f3cfcf462b0dce73d8 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 10 Oct 2017 14:41:01 +0200 Subject: [PATCH] if there was an mtasker waiter with no associated timeout, we would loop forever in MTasker::schedule() --- pdns/mtasker.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.40.0