From: Jeff Trawick Date: Sun, 14 Dec 2014 21:48:25 +0000 (+0000) Subject: ssl_io_filter_handshake(): When a post-handshake check fails, X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49dea66858aff5721c3fc8cb1215d9feadca37eb;p=thirdparty%2Fapache%2Fhttpd.git ssl_io_filter_handshake(): When a post-handshake check fails, return an error code understood by ssl_io_filter_error(). That function needs to perform error handling, and a valid apr_status_t needs to be returned up. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1645529 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 7c0267c60c4..4bd23a7e50e 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -1229,7 +1229,7 @@ static apr_status_t ssl_io_filter_handshake(ssl_filter_ctx_t *filter_ctx) /* ensure that the SSL structures etc are freed, etc: */ ssl_filter_io_shutdown(filter_ctx, c, 1); apr_table_setn(c->notes, "SSL_connect_rv", "err"); - return HTTP_BAD_GATEWAY; + return MODSSL_ERROR_BAD_GATEWAY; } apr_table_setn(c->notes, "SSL_connect_rv", "ok");