diff options
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 |
commit | 85617e012de1df43070bd4fba80ecce50dd87735 (patch) | |
tree | 8975205d1bbab64f9baab05ab84f4f2f2455dc9a /src/run.c | |
parent | ddd1fd266a0732661fdfd6792dd4bbe70271b0f8 (diff) | |
download | conntrack-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) { |