summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-03-29 14:21:05 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-03-29 14:21:05 +0200
commitd79d9f864f4dc146386547df5a1c6afced55b8cd (patch)
tree03408220a1e8a0a1a8337cfea68dcad9b88c6814 /src/irmd/main.c
parent9097a5446c31b83ec224b3e1403a319b24025346 (diff)
downloadouroboros-d79d9f864f4dc146386547df5a1c6afced55b8cd.tar.gz
ouroboros-d79d9f864f4dc146386547df5a1c6afced55b8cd.zip
irmd: Set failed flows to FLOW_NULL before destroy
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 9a062cf3..afd60f4d 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -1205,6 +1205,7 @@ static struct irm_flow * flow_alloc(pid_t api,
bmp_release(irmd->port_ids, f->port_id);
pthread_rwlock_unlock(&irmd->flows_lock);
pthread_rwlock_unlock(&irmd->state_lock);
+ irm_flow_set_state(f, FLOW_NULL);
irm_flow_destroy(f);
return NULL;
}