# HG changeset patch # User Olaf Wintermann # Date 1484999191 -3600 # Node ID 89af278b7dbb292fb8b54a9895477ced743bf2dc # Parent aa016efb9ad708e15e472a272c40484526292868 fixes socket fd leak when SSL_accept fails diff -r aa016efb9ad7 -r 89af278b7dbb src/server/daemon/httplistener.c --- a/src/server/daemon/httplistener.c Mon Jan 16 14:41:20 2017 +0100 +++ b/src/server/daemon/httplistener.c Sat Jan 21 12:46:31 2017 +0100 @@ -410,6 +410,7 @@ log_ereport(LOG_INFORM, "SSL accept error: %d", error); free(conn); conn = NULL; + close(clientfd); } else { conn->ssl = ssl; conn->read = connection_ssl_read;