summaryrefslogtreecommitdiffstats
path: root/libnetfilter_cthelper.pc.in
diff options
context:
space:
mode:
authorLiping Zhang <zlpnobody@gmail.com>2017-03-19 22:01:10 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-03-21 11:41:21 +0100
commit9f223e612d3b0be6e4dca84e1db8042dbec64e93 (patch)
treef8ea2432aa76768c901b8377173ab6575c5c8ff5 /libnetfilter_cthelper.pc.in
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/libc.so.6(+0x77de5)[0x7fd9ebe88de5] /lib64/libc.so.6(+0x8022a)[0x7fd9ebe9122a] /lib64/libc.so.6(cfree+0x4c)[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 <zlpnobody@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libnetfilter_cthelper.pc.in')
0 files changed, 0 insertions, 0 deletions