iptables: Reset pointer after freeing
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 21 Feb 2013 16:42:30 +0000 (17:42 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 22 Feb 2013 10:42:52 +0000 (12:42 +0200)
commit4f30adc930c73036c6d1a146cdb21933af38e0d4
tree3128f2b2aa03e7841d15c91ed6d32dd2831ca8da
parentbdd1663c5cf56853ca745635f7448e09613d5e36
iptables: Reset pointer after freeing

The match or the target might be reused in the next invocation
of iptables and then xtables operates on this invalid pointer.
xt_t->t and xt_m->m are keept alive via the global variables
xtables_targets and xtables_matches.
src/iptables.c