Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Use socket_close instead of close to close a socket
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Oct 19, 2018
1 parent 194568b commit 841d316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ int socket_connect(const char *addr, uint16_t port)
}
}
}
close(sfd);
socket_close(sfd);
}

freeaddrinfo(result);
Expand Down

0 comments on commit 841d316

Please sign in to comment.