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-Tag: 2.5.0-alpha~3612 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e416f19bebbc871e8191074bf5b16b90fa2a6c7;p=apache 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 7c0267c60c..4bd23a7e50 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");