From d222a173f826c6bc4b32c3db8bac7ba610632c8e Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 16 Jun 2016 19:45:55 +0200 Subject: ipcpd: fixed missing unlock in shim UDP Unlock missing when compiled without DNS support. --- src/ipcpd/shim-udp/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c index 186f0ebc..ccd8530b 100644 --- a/src/ipcpd/shim-udp/main.c +++ b/src/ipcpd/shim-udp/main.c @@ -1151,6 +1151,8 @@ static int ipcp_udp_name_reg(char * name) return -1; } } +#else + rw_lock_unlock(&_ipcp->state_lock); #endif LOG_DBG("Registered %s.", name); @@ -1606,7 +1608,9 @@ int main (int argc, char * argv[]) free(_ipcp->ops); free(_ipcp); - exit(0); + LOG_DBG("IPCP exited."); + + exit(EXIT_SUCCESS); } #endif /* MAKE_CHECK */ -- cgit v1.2.3