diff -r 76c96ee18221 -r af7e2d80dee6 src/server/daemon/httplistener.c --- a/src/server/daemon/httplistener.c Sat Feb 04 10:06:25 2017 +0100 +++ b/src/server/daemon/httplistener.c Tue Feb 14 12:56:23 2017 +0100 @@ -50,6 +50,7 @@ #include "../util/atomic.h" #include "httplistener.h" +#include "netsite.h" #include "session.h" #include "configmanager.h" @@ -422,7 +423,7 @@ log_ereport(LOG_VERBOSE, "SSL accept error[%d]: %s", error, errstr); free(conn); conn = NULL; - close(clientfd); + system_close(clientfd); } else { conn->ssl = ssl; conn->read = connection_ssl_read;