]> git.ipfire.org Git - thirdparty/iptables.git/commit
ip(6)tables-restore: make sure argv is NULL terminated
authorFlorian Westphal <fw@strlen.de>
Thu, 10 May 2012 05:42:47 +0000 (05:42 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 May 2012 08:40:25 +0000 (10:40 +0200)
commitcb999dfdaf25d5a774d2ee84cb99355438d57c93
tree89ae73d30bfc2f7be29c9e19dad5ce8719574442
parent6111382a6c27e73c1cef1777c1253be0453a9dbb
ip(6)tables-restore: make sure argv is NULL terminated

Else, argv[argc] may point to free'd memory.

Some extensions, e.g. rateest, may fail to parse valid input
because argv[optind] (with optind == argc) is not NULL.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/ip6tables-restore.c
iptables/iptables-restore.c