From 6ae4b7710c4b8764418a1891902318aa7618044e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 2 Aug 2008 20:07:06 +0200 Subject: cache_iterators: do not report ENOENT in cache_reset_timers Do not report ENOENT to log files, this may confuse users. There's a race condition when shortening the timers and handling the destroy messages. However, this problem is not serious as the point of the shortening is to reduce the lifetime of the conntracks. If the conntrack is dying, there's no point to shorten their lifetime anymore :) Signed-off-by: Pablo Neira Ayuso --- src/cache_iterators.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cache_iterators.c b/src/cache_iterators.c index 2abb6cd..a7c6654 100644 --- a/src/cache_iterators.c +++ b/src/cache_iterators.c @@ -186,7 +186,6 @@ static int do_reset_timers(void *data1, void *data2) ret = nl_exist_conntrack(ct); switch (ret) { case -1: - case 0: /* the kernel table is not in sync with internal cache */ dlog(LOG_ERR, "reset-timers: %s", strerror(errno)); dlog_ct(STATE(log), ct, NFCT_O_PLAIN); -- cgit v1.2.3