From 85617e012de1df43070bd4fba80ecce50dd87735 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Mon, 14 Jan 2008 17:56:58 +0000 Subject: fix broken next alarm calculation in the run loop --- src/run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/run.c b/src/run.c index 3481193..8919b6c 100644 --- a/src/run.c +++ b/src/run.c @@ -230,7 +230,8 @@ void run(void) /* initialization: get the first alarm available */ gettimeofday(&tv, NULL); - get_next_alarm(&tv, next); + if (!get_next_alarm(&tv, next)) + next = NULL; while(1) { if (__run(next)) { -- cgit v1.2.3