diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-16 14:25:18 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-02-16 14:25:18 +0100 |
commit | dd24e2da2feaacc63e10a375e1909f035ea02543 (patch) | |
tree | 32777cb8b33f16dfdf13f423cad8072b8bf8c647 /src | |
parent | c2acb11453fc75519862240298e106ac79274780 (diff) | |
download | conntrack-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |