summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-23 12:48:03 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-23 12:48:03 +0200
commit1b57e9ab5e26f7fbd2a5f1eb9c920ff4c93fad56 (patch)
tree30ba4563ccd80a7c105480a68985116cc605d2e9
parenta2d1d9025f42d3d9205c7b4890f693e26d6d324d (diff)
downloadouroboros-1b57e9ab5e26f7fbd2a5f1eb9c920ff4c93fad56.tar.gz
ouroboros-1b57e9ab5e26f7fbd2a5f1eb9c920ff4c93fad56.zip
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.
-rw-r--r--src/irmd/main.c3
1 files changed, 1 insertions, 2 deletions
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);
}
}