summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 839a5a9b..a9f2b77b 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -256,7 +256,7 @@ void * ipcp_main_loop(void * o)
}
pthread_cleanup_pop(true);
-
+ pthread_cleanup_pop(false);
buffer.len = ipcp_msg__get_packed_size(&ret_msg);
if (buffer.len == 0) {
@@ -280,7 +280,7 @@ void * ipcp_main_loop(void * o)
}
free(buffer.data);
- pthread_cleanup_pop(true);
+ close(lsockfd);
}