]> The Tcpdump Group git mirrors - tcpdump/commit
Don't accept zero -C or -W options 526/head
authorJamie Bainbridge <[email protected]>
Wed, 29 Jun 2016 23:15:33 +0000 (09:15 +1000)
committerGitHub <[email protected]>
Wed, 29 Jun 2016 23:15:33 +0000 (09:15 +1000)
commit68a0f9980d04dc89b2fb29e5b721ad7606d9733b
treebfc373162fc56cbedbc20a6dda0b9c2b61d53c08
parent0e34f5d742dbced0374217501ed9db1a79034b35
Don't accept zero -C or -W options

Rolling over into zero filesize makes no sense. Creating a rotating
buffer of zero files makes no sense.

Modify the checks for -C and -W to accept greater than one, not greater
than zero.

Signed-off-by: Jamie Bainbridge <[email protected]>
tcpdump.c