summaryrefslogtreecommitdiff
path: root/src/stats-mode.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-11 01:17:01 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-01-11 01:17:01 +0000
commita7cec817806de3855e42bc1a81f60fd4154b8cf2 (patch)
treeed7c7a9682ac3c18e45f00b05a30ac7779e41953 /src/stats-mode.c
parent3370112cc3c9f0446fbe7375bdb32831872814f4 (diff)
downloadconntrack-tools-a7cec817806de3855e42bc1a81f60fd4154b8cf2.tar.gz
conntrack-tools-a7cec817806de3855e42bc1a81f60fd4154b8cf2.zip
fix buffer flush before exiting
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r--src/stats-mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c
index ee9b3fd..20efc95 100644
--- a/src/stats-mode.c
+++ b/src/stats-mode.c
@@ -62,7 +62,7 @@ static void kill_stats()
cache_destroy(STATE_STATS(cache));
/* flush the buffer before exiting */
if (STATE(stats_log) != NULL)
- buffer_flush(STATE(stats_log),
+ buffer_flush(STATE_STATS(buffer_log),
dlog_buffered_ct_flush,
STATE(stats_log));
}