From: Simon Ruderich Date: Mon, 7 Mar 2011 16:46:07 +0000 (+0100) Subject: src/connection.c: Add missing close() in handle_connection(). X-Git-Tag: 0.1~28 X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=8f00cc8238c41fb6140b247363aeddf1e1bb7e02 src/connection.c: Add missing close() in handle_connection(). --- diff --git a/src/connection.c b/src/connection.c index 418c424..ec351b7 100644 --- a/src/connection.c +++ b/src/connection.c @@ -110,6 +110,7 @@ void handle_connection(int client_socket) { server_fd = fdopen(server_socket, "a+"); if (NULL == server_fd) { send_close_forwarding_failure(client_fd); + close(server_socket); return; }