summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp/main.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-06-16 12:43:39 +0200
committerdimitri staessens <[email protected]>2016-06-16 12:47:55 +0200
commite7d7632549947fa867d6bec504442647862ad9b8 (patch)
tree75158ce721b25b838b129faedb5490590a2392cb /src/ipcpd/shim-udp/main.c
parent18318ecbd33544438f7ec870437ff93f6d286c07 (diff)
downloadouroboros-e7d7632549947fa867d6bec504442647862ad9b8.tar.gz
ouroboros-e7d7632549947fa867d6bec504442647862ad9b8.zip
ipcpd: fixed locking and cleanup
The ipcpds didn't unlock the flows lock when the dst_name is unbeknownst to the IRMd.
Diffstat (limited to 'src/ipcpd/shim-udp/main.c')
-rw-r--r--src/ipcpd/shim-udp/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 99fb134d..f583a998 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -486,6 +486,7 @@ static int ipcp_udp_port_req(struct sockaddr_in * c_saddr,
src_ae_name);
if (port_id < 0) {
+ rw_lock_unlock(&_ap_instance->flows_lock);
rw_lock_unlock(&_ipcp->state_lock);
LOG_ERR("Could not get port id from IRMd");
close(fd);