Commit cf981aa2 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

All error handling paths of this function call 'apr_socket_close()' , except this one.

So add it here too.

Probably spotted with the help of the Coccinelle software (Thx Julia for the patch and for Coccinelle)

See PR 53015

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832348 13f79535-47bb-0310-9956-ffa450edef68
parent 951b037b
Loading
Loading
Loading
Loading
+1 −0
Changes for modules/proxy/mod_proxy_connect.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -305,6 +305,7 @@ static int proxy_connect_handler(request_rec *r, proxy_worker *worker,
        backconn->aborted = 1;
        ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01022)
                      "pre_connection setup failed (%d)", rc);
        apr_socket_close(sock);
        return HTTP_INTERNAL_SERVER_ERROR;
    }