From: Joe Orton Date: Wed, 22 Sep 2004 16:34:20 +0000 (+0000) Subject: * modules/ssl/ssl_engine_io.c (ssl_io_filter_connect): Return X-Git-Tag: 2.1.1~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d1d856e9d21f211065a7fcead3de987f7e4570d;p=apache * modules/ssl/ssl_engine_io.c (ssl_io_filter_connect): Return 502 not 501 if SSL_connect() fails for a proxy connection. PR: 31083 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105252 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 671fa5a547..0c41551f14 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -1037,7 +1037,9 @@ static int ssl_io_filter_connect(ssl_filter_ctx_t *filter_ctx) c->base_server, "SSL Proxy connect failed"); ssl_log_ssl_error(APLOG_MARK, APLOG_INFO, c->base_server); - return ssl_filter_io_shutdown(filter_ctx, c, 1); + /* ensure that the SSL structures etc are freed, etc: */ + ssl_filter_io_shutdown(filter_ctx, c, 1); + return HTTP_BAD_GATEWAY; } return APR_SUCCESS;