1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-24 10:02:16 -05:00

Fixed possible file descriptor leak.

This commit is contained in:
Belobrov Andrey 2014-02-14 08:32:38 +04:00
parent 9d2deff6ad
commit ff070a6b46

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;
}