summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-10-24 06:40:53 +0000
committerSander Vrijders <[email protected]>2016-10-24 06:40:53 +0000
commit1c06b9ff80a2bf7ee6042534fee6098f7e452b59 (patch)
tree304508f191114dd1ce3ce55bd9e8123638567b2f /src/irmd
parent94573411a43ed2d2232bb9cf86998273c56cd249 (diff)
parentb23e3024d12c28b01426cc37d5adf03f9c1bea88 (diff)
downloadouroboros-1c06b9ff80a2bf7ee6042534fee6098f7e452b59.tar.gz
ouroboros-1c06b9ff80a2bf7ee6042534fee6098f7e452b59.zip
Merged in dstaesse/ouroboros/be-fix-alloc (pull request #276)
lib: Stabilise flow allocation
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 390681a8..3884a9a7 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -1929,10 +1929,9 @@ void * mainloop(void * o)
ret_msg.result = flow_alloc_res(msg->port_id);
break;
case IRM_MSG_CODE__IRM_FLOW_DEALLOC:
- flow_dealloc(msg->api, msg->port_id);
- irm_msg__free_unpacked(msg, NULL);
- close(cli_sockfd);
- continue;
+ ret_msg.has_result = true;
+ ret_msg.result = flow_dealloc(msg->api, msg->port_id);
+ break;
case IRM_MSG_CODE__IPCP_FLOW_REQ_ARR:
e = flow_req_arr(msg->api,
msg->dst_name,