From 1b57e9ab5e26f7fbd2a5f1eb9c920ff4c93fad56 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Tue, 23 Aug 2016 12:48:03 +0200 Subject: irmd: Fix cleaning dead AP-I The reg_entry_del_api must be called to correctly set the flow handling state instead of just clearing the entry from the list. --- src/irmd/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/irmd') diff --git a/src/irmd/main.c b/src/irmd/main.c index df93c75a..c33ba3e6 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1693,8 +1693,7 @@ void * irm_sanitize() continue; LOG_DBG("Dead AP-I removed from: %d %s.", a->pid, e->name); - list_del(&a->next); - free(a); + reg_entry_del_api(e, a->pid); } } -- cgit v1.2.3