X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fconnection.c;h=ec351b7cc4446551151428d3795fa68a18b2aa6b;hb=8f00cc8238c41fb6140b247363aeddf1e1bb7e02;hp=418c424c03e3d3f362cc7f9d9b22ac466951689c;hpb=1c56e6d7e4f7f80eab3a630ce81b2b6481072121;p=tlsproxy%2Ftlsproxy.git 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; }