summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-03-28 11:05:18 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-03-28 11:05:18 +0200
commit9614b7b5ad422b628e72e8a2e90e471b176e14a1 (patch)
tree3519025fdbcbe27e5704c052ad1f50c3524b2e03 /src/ipcpd
parentba13c05b8b61365ff9e969c15affd2e1d52b76ed (diff)
downloadouroboros-9614b7b5ad422b628e72e8a2e90e471b176e14a1.tar.gz
ouroboros-9614b7b5ad422b628e72e8a2e90e471b176e14a1.zip
ipcpd: Fix use-after-free in frct
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/frct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipcpd/normal/frct.c b/src/ipcpd/normal/frct.c
index 01bdb660..017d0d93 100644
--- a/src/ipcpd/normal/frct.c
+++ b/src/ipcpd/normal/frct.c
@@ -371,10 +371,11 @@ int frct_i_destroy(cep_id_t id,
pci.qos_id = instance->cube;
frct.instances[id] = NULL;
- destroy_frct_i(instance);
release_cep_id(instance->cep_id);
+ destroy_frct_i(instance);
+
pthread_mutex_unlock(&frct.instances_lock);
if (buf != NULL && buf->data != NULL)