diff options
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r-- | src/sync-ftfw.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c index 5019d4e..4c1b536 100644 --- a/src/sync-ftfw.c +++ b/src/sync-ftfw.c @@ -70,12 +70,15 @@ static void cache_ftfw_del(struct us_conntrack *u, void *data) struct cache_ftfw *cn = data; /* this node is already out of the list */ - if (list_empty(&cn->rs_list)) - return; - - /* no need for list_del_init since the entry is destroyed */ - list_del(&cn->rs_list); - rs_list_len--; + if (!list_empty(&cn->rs_list)) { + /* no need for list_del_init since the entry is destroyed */ + list_del(&cn->rs_list); + rs_list_len--; + } + if (!list_empty(&cn->tx_list)) { + list_del(&cn->tx_list); + tx_list_len--; + } } static struct cache_extra cache_ftfw_extra = { |