bug fix in --packet-limit handling to ensure multi-packet processing when the arg is not used
git-svn-id: file:///home/mbr/svn/fwknop/trunk@198 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
parent
33cb0d4826
commit
ca531c3dcc
@ -267,7 +267,8 @@ main(int argc, char **argv)
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (opts.packet_ctr >= opts.packet_ctr_limit)
|
||||
else if (opts.packet_ctr_limit > 0
|
||||
&& opts.packet_ctr >= opts.packet_ctr_limit)
|
||||
{
|
||||
log_msg(LOG_INFO|LOG_STDERR,
|
||||
"Packet count limit (%d) reached. Exiting...",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user