]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_engine_io.c: Restore code removed by
authorJoe Orton <jorton@apache.org>
Mon, 1 Mar 2010 21:27:17 +0000 (21:27 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 1 Mar 2010 21:27:17 +0000 (21:27 +0000)
mistake in mis-merged r917343.

Reviewed by: jorton, trawick, wrowe

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

modules/ssl/ssl_engine_io.c

index 2ddaa920811992381d76b0c043c4e452bb74f5c7..d26a0c2b9c4444bec5165d2d1c4b5dbef6fb5360 100644 (file)
@@ -472,6 +472,12 @@ static int bio_filter_in_read(BIO *bio, char *in, int inlen)
     if (!in)
         return 0;
 
+    /* Abort early if the client has initiated a renegotiation. */
+    if (inctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
+        inctx->rc = APR_ECONNABORTED;
+        return -1;
+    }
+
     /* In theory, OpenSSL should flush as necessary, but it is known
      * not to do so correctly in some cases; see PR 46952.
      *