summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 20:07:06 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 20:07:06 +0200
commit6ae4b7710c4b8764418a1891902318aa7618044e (patch)
tree5308a8b2ac86db3df6d65800a8ff56d8f2596855 /src
parent6887cc03a9bc7df031b56ed670fa1db0165d5529 (diff)
downloadconntrack-tools-6ae4b7710c4b8764418a1891902318aa7618044e.tar.gz
conntrack-tools-6ae4b7710c4b8764418a1891902318aa7618044e.zip
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 <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/cache_iterators.c1
1 files changed, 0 insertions, 1 deletions
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);