From e7d7632549947fa867d6bec504442647862ad9b8 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 16 Jun 2016 12:43:39 +0200 Subject: ipcpd: fixed locking and cleanup The ipcpds didn't unlock the flows lock when the dst_name is unbeknownst to the IRMd. --- src/ipcpd/shim-udp/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipcpd/shim-udp/main.c') 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); -- cgit v1.2.3