]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
src/connection.c: Add missing close() in handle_connection().
authorSimon Ruderich <simon@ruderich.org>
Mon, 7 Mar 2011 16:46:07 +0000 (17:46 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 7 Mar 2011 16:46:07 +0000 (17:46 +0100)
src/connection.c

index 418c424c03e3d3f362cc7f9d9b22ac466951689c..ec351b7cc4446551151428d3795fa68a18b2aa6b 100644 (file)
@@ -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;
     }