]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables: reset options at the start of each command
authorJan Engelhardt <jengelh@medozas.de>
Sun, 28 Nov 2010 14:35:06 +0000 (15:35 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 28 Nov 2010 14:41:03 +0000 (15:41 +0100)
commitd3b2e391e3b944581e20e216af76339cc87d0590
tree8401556f1d85d4ec879774959b10abf7246af2cc
parenta905ea5c97149da9d76cd278b0447e3316087a45
iptables: reset options at the start of each command

For each new command, iptables is supposed to start afresh with a
blank option set (opts) that only contains the program-specific
options (orig_opts), without any extension options. We failed to
restore this pointer (in function do_command) after the previous free
call in xtables_free_opts.

Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
ip6tables.c
iptables.c