From 8f00cc8238c41fb6140b247363aeddf1e1bb7e02 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 7 Mar 2011 17:46:07 +0100 Subject: [PATCH] src/connection.c: Add missing close() in handle_connection(). --- src/connection.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.45.2