]> granicus.if.org Git - apache/commitdiff
ssl_io_filter_handshake(): When a post-handshake check fails,
authorJeff Trawick <trawick@apache.org>
Sun, 14 Dec 2014 21:48:25 +0000 (21:48 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 14 Dec 2014 21:48:25 +0000 (21:48 +0000)
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

modules/ssl/ssl_engine_io.c

index 7c0267c60c4a12f1e290f7109fd6ca1cec2aae50..4bd23a7e50ea4aff287d3e5af921b2f1ab1cf0d0 100644 (file)
@@ -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");