summaryrefslogtreecommitdiffstats
path: root/src/external_cache.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-12-19 17:12:41 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2012-01-10 01:54:45 +0100
commiteb31a0c3eb9db28e673587d4614662645a10cffa (patch)
tree2232d6322698dd50a9e7eec9ddc1cace47764d91 /src/external_cache.c
parent2719bd93ad5f589139d8ede0726fa6a2ef2eb321 (diff)
conntrackd: minor cleanup for commit
Comestical cleanup for better code readability. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/external_cache.c')
-rw-r--r--src/external_cache.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/external_cache.c b/src/external_cache.c
index 4b6fa6f..3f896a0 100644
--- a/src/external_cache.c
+++ b/src/external_cache.c
@@ -91,12 +91,7 @@ static void external_cache_ct_dump(int fd, int type)
static int external_cache_ct_commit(struct nfct_handle *h, int fd)
{
- if (!cache_commit(external, h, fd)) {
- dlog(LOG_NOTICE, "commit already in progress, skipping");
- return LOCAL_RET_OK;
- }
- /* Keep the client socket open, we want synchronous commits. */
- return LOCAL_RET_STOLEN;
+ return cache_commit(external, h, fd);
}
static void external_cache_ct_flush(void)