]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_engine_io.c (ssl_io_filter_connect): Check the
authorJoe Orton <jorton@apache.org>
Mon, 26 Jan 2004 10:08:30 +0000 (10:08 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 26 Jan 2004 10:08:30 +0000 (10:08 +0000)
library code as well as the reason code when looking for the
plain-HTTP-request error.

Submitted by: Stephen Henson <steve@openssl.org>
Reviewed by: Joe Orton, Justin Erenkrantz, Andr�� Malo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@102407 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/ssl/ssl_engine_io.c

diff --git a/STATUS b/STATUS
index cf345562aea9379588a11877e265ce864e6df03f..49c514252da9c99666a308b9d124082c80e6073e 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2004/01/25 00:06:20 $]
+Last modified at [$Date: 2004/01/26 10:08:30 $]
 
 Release:
 
@@ -254,10 +254,6 @@ PATCHES TO BACKPORT FROM 2.1
         modules/filters/mod_include.c: r1.264
       +1: nd, trawick
 
-    * mod_ssl: fix check for the plain-HTTP-request error
-        modules/ssl/ssl_engine_io.c r1.111
-      +1: jorton, jerenkrantz, nd
-
     * When UseCanonicalName is set to OFF, allow ap_get_server_port to 
       check r->connection->local_addr->port before defaulting to 
       server->port or ap_default_port()
index 2893ea85544c5cb4bd6a3667d8edf08dc8593bf2..c5b8e80d41e9c3c2e4b2791cea108c13b9091cea 100644 (file)
@@ -1091,7 +1091,8 @@ static int ssl_io_filter_connect(ssl_filter_ctx_t *filter_ctx)
             outctx->rc = APR_EAGAIN;
             return SSL_ERROR_WANT_READ;
         }
-        else if (ERR_GET_REASON(ERR_peek_error()) == SSL_R_HTTP_REQUEST) {
+        else if (ERR_GET_LIB(ERR_peek_error()) == ERR_LIB_SSL &&
+                 ERR_GET_REASON(ERR_peek_error()) == SSL_R_HTTP_REQUEST) {
             /*
              * The case where OpenSSL has recognized a HTTP request:
              * This means the client speaks plain HTTP on our HTTPS port.