summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-16 19:45:55 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-16 19:51:51 +0200
commitd222a173f826c6bc4b32c3db8bac7ba610632c8e (patch)
tree076456b1d1eca962c403d422bf5f74150dfab8c6 /src/ipcpd/shim-udp
parent9513708ddf4eedc03c41a8d07f3dcb6e48f23c0c (diff)
downloadouroboros-d222a173f826c6bc4b32c3db8bac7ba610632c8e.tar.gz
ouroboros-d222a173f826c6bc4b32c3db8bac7ba610632c8e.zip
ipcpd: fixed missing unlock in shim UDP
Unlock missing when compiled without DNS support.
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r--src/ipcpd/shim-udp/main.c6
1 files changed, 5 insertions, 1 deletions
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 */