1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-13 12:45:05 -05:00

Merge pull request #14 from belobrov-andrey/fd_leak_fix

Fixed possible file descriptor leak.
This commit is contained in:
yrutschle 2014-02-16 13:11:19 +01:00
commit 27567c4804

View File

@ -155,6 +155,7 @@ int connect_addr(struct connection *cnx, int fd_from)
if (res == -1) {
log_message(LOG_ERR, "forward to %s failed:connect: %s\n",
cnx->proto->description, strerror(errno));
close(fd);
} else {
return fd;
}