summaryrefslogtreecommitdiffstats
path: root/common/socket.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-10-21 15:57:34 +0200
committerGravatar Nikias Bassen2018-10-21 15:57:34 +0200
commit9db5747cd823b1f59794f81560a4af22a031f5c9 (patch)
tree85ba1c2096c1095a26d7f97664294f5c6bad059d /common/socket.c
parent0212e76db589837a39b251567c8ae2985a1a7e3e (diff)
downloadlibusbmuxd-9db5747cd823b1f59794f81560a4af22a031f5c9.tar.gz
libusbmuxd-9db5747cd823b1f59794f81560a4af22a031f5c9.tar.bz2
socket: Make sure to use socket_close() really everywhere
Diffstat (limited to 'common/socket.c')
-rw-r--r--common/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/socket.c b/common/socket.c
index bbc3de2..1a7fe8d 100644
--- a/common/socket.c
+++ b/common/socket.c
@@ -272,7 +272,7 @@ int socket_connect(const char *addr, uint16_t port)
if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void*)&yes, sizeof(int)) == -1) {
perror("setsockopt()");
- close(sfd);
+ socket_close(sfd);
continue;
}