path: root/
diff options
authorLiping Zhang <>2017-03-19 22:01:10 +0800
committerPablo Neira Ayuso <>2017-03-21 11:41:21 +0100
commit9f223e612d3b0be6e4dca84e1db8042dbec64e93 (patch)
treef8ea2432aa76768c901b8377173ab6575c5c8ff5 /
parentf58c5b09fb59baf07c942d373fc4d522b27e73c6 (diff)
examples: fix double free in nftc-helper-add
After inputting the following test command, core dump happened: # ./examples/nfct-helper-add test 1 *** Error in `.../libnetfilter_cthelper/examples/.libs/lt-nfct-helper-add': double free or corruption (fasttop): 0x0000000001f3c070 *** ======= Backtrace: ========= /lib64/[0x7fd9ebe88de5] /lib64/[0x7fd9ebe9122a] /lib64/[0x7fd9ebe9478c] [...] Because "struct nfct_helper_policy *p" had been freed by nfct_helper_free, so there's no need to invoke nfct_helper_policy_free again, otherwise double free error will happen. Signed-off-by: Liping Zhang <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions