You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2004/09/22 18:34:21 UTC
cvs commit: httpd-2.0/modules/ssl ssl_engine_io.c
jorton 2004/09/22 09:34:20
Modified: modules/ssl ssl_engine_io.c
Log:
* modules/ssl/ssl_engine_io.c (ssl_io_filter_connect): Return
502 not 501 if SSL_connect() fails for a proxy connection.
PR: 31083
Revision Changes Path
1.127 +3 -1 httpd-2.0/modules/ssl/ssl_engine_io.c
Index: ssl_engine_io.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_io.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -d -w -u -r1.126 -r1.127
--- ssl_engine_io.c 17 Aug 2004 16:31:23 -0000 1.126
+++ ssl_engine_io.c 22 Sep 2004 16:34:20 -0000 1.127
@@ -1037,7 +1037,9 @@
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;