From af435fc1fbeaa2865b46c1e18c82aa8623492a16 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 1 Mar 2010 21:27:17 +0000 Subject: [PATCH] * modules/ssl/ssl_engine_io.c: Restore code removed by 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 2ddaa920811..d26a0c2b9c4 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -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. * -- 2.47.2