summaryrefslogtreecommitdiffstats
path: root/src/stats-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stats-mode.c')
-rw-r--r--src/stats-mode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stats-mode.c b/src/stats-mode.c
index f65fbdb..92794cd 100644
--- a/src/stats-mode.c
+++ b/src/stats-mode.c
@@ -142,9 +142,11 @@ static void event_new_stats(struct nf_conntrack *ct, struct nlmsghdr *nlh)
if (cache_add(STATE_STATS(cache), ct)) {
debug_ct(ct, "cache new");
} else {
- dlog(STATE(log), "can't add to cache cache: "
- "%s\n", strerror(errno));
- debug_ct(ct, "can't add");
+ if (errno != EEXIST) {
+ dlog(STATE(log), "can't add to cache cache: "
+ "%s\n", strerror(errno));
+ debug_ct(ct, "can't add");
+ }
}
}