summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-02-16 14:25:18 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-02-16 14:25:18 +0100
commitdd24e2da2feaacc63e10a375e1909f035ea02543 (patch)
tree32777cb8b33f16dfdf13f423cad8072b8bf8c647 /src
parentc2acb11453fc75519862240298e106ac79274780 (diff)
downloadconntrack-tools-dd24e2da2feaacc63e10a375e1909f035ea02543.tar.gz
conntrack-tools-dd24e2da2feaacc63e10a375e1909f035ea02543.zip
conntrackd: event iteration limiter is already reset in main select loop
This patch removes an unnecessary reset of the event iteration limiter that is already done in the main select loop. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-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;
}