diff options
author | Christopher Horler <cshorler@googlemail.com> | 2014-12-08 20:04:31 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-12-08 23:18:39 +0100 |
commit | d48012fa7718195e3f897b01a36e4ba249aa6dfc (patch) | |
tree | 0b1457f1e010b72d7fcd03951f0acfecc5f44c3b | |
parent | 0c52422eb236b16bc663a7f22df3e30fb9c8bf71 (diff) |
src: fix use after free
Fixes: https://bugzilla.netfilter.org/show_bug.cgi?id=990
Signed-off-by: Christopher Horler <cshorler@googlemail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/libnetfilter_cthelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnetfilter_cthelper.c b/src/libnetfilter_cthelper.c index 2978870..f8f58e6 100644 --- a/src/libnetfilter_cthelper.c +++ b/src/libnetfilter_cthelper.c @@ -113,11 +113,11 @@ void nfct_helper_free(struct nfct_helper *h) { int i; - free(h); for (i=0; i<NF_CT_HELPER_CLASS_MAX; i++) { if (h->expect_policy[i]) free(h->expect_policy[i]); } + free(h); } EXPORT_SYMBOL(nfct_helper_free); |