summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-23 22:30:46 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-23 22:30:46 +0000
commit10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4 (patch)
tree8a307b5138b18dba0ed277d4deb85a8ca8e64347 /src/ipcpd/ipcp.c
parent1ca26ab86712575a5e89dcd68295b57fd27c5703 (diff)
parent47bd452352389925188ca4d36ae1c1ba611e6aeb (diff)
downloadouroboros-10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4.tar.gz
ouroboros-10c2f8ca9af659c5b7a56fdc8e8f84e931d3f6d4.zip
Merged in sandervrijders/ouroboros/be-memleaks (pull request #568)
lib, ipcpd, irmd: Fix several memleaks
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 300c22f4..ff45407b 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -184,10 +184,8 @@ static void * mainloop(void * o)
if (sfd == -1) {
pthread_mutex_unlock(&ipcpi.cmd_lock);
- if (tpm_check()) {
- close(sfd);
+ if (tpm_check())
break;
- }
continue;
}