diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-21 18:50:51 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-10-21 18:50:51 +0200 |
commit | 705435f574e45348f5613672588b453d6285ef20 (patch) | |
tree | b485d4b0c5d9b6b523713fcd33f2abd5ba0be3eb /src | |
parent | 5fa52f81764d078d0a719a8902ad00a0d3acd511 (diff) | |
download | conntrack-tools-705435f574e45348f5613672588b453d6285ef20.tar.gz conntrack-tools-705435f574e45348f5613672588b453d6285ef20.zip |
filter: fix segfault if the Filter clause is unused
This patch fixes a segfault when conntrackd -k is invoked for an
instance of conntrackd with no use of the Filter clause.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/run.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,7 +40,8 @@ void killer(int foo) nfct_close(STATE(event)); nfct_close(STATE(request)); - ct_filter_destroy(STATE(us_filter)); + if (STATE(us_filter)) + ct_filter_destroy(STATE(us_filter)); local_server_destroy(&STATE(local)); STATE(mode)->kill(); |