summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/run.c b/src/run.c
index d96ff6c..6dfc8d4 100644
--- a/src/run.c
+++ b/src/run.c
@@ -282,10 +282,10 @@ static int event_handler(const struct nlmsghdr *nlh,
}
out:
- if (STATE(event_iterations_limit)-- <= 0) {
- STATE(event_iterations_limit) = CONFIG(event_iterations_limit);
+ /* we reset the iteration limiter in the main select loop. */
+ if (STATE(event_iterations_limit)-- <= 0)
return NFCT_CB_STOP;
- } else
+ else
return NFCT_CB_CONTINUE;
}