summaryrefslogtreecommitdiff
path: root/src/run.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-14 17:56:58 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-14 17:56:58 +0000
commit85617e012de1df43070bd4fba80ecce50dd87735 (patch)
tree8975205d1bbab64f9baab05ab84f4f2f2455dc9a /src/run.c
parentddd1fd266a0732661fdfd6792dd4bbe70271b0f8 (diff)
downloadconntrack-tools-85617e012de1df43070bd4fba80ecce50dd87735.tar.gz
conntrack-tools-85617e012de1df43070bd4fba80ecce50dd87735.zip
fix broken next alarm calculation in the run loop
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c3
1 files changed, 2 insertions, 1 deletions
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)) {