From: Doug MacEachern Date: Tue, 14 Aug 2001 17:03:03 +0000 (+0000) Subject: need to check return value of ssl_hook_process_connection X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f07c2729b9112be6e19136d22d55f3136c44868;p=thirdparty%2Fapache%2Fhttpd.git need to check return value of ssl_hook_process_connection if != APR_SUCCESS the ssl connection has been shutdown (for example client cert was revoked) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@90155 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 13b513d2bd1..fc2abb8454f 100644 --- a/ssl_engine_io.c +++ b/ssl_engine_io.c @@ -282,8 +282,13 @@ static apr_status_t churn (SSLFilterRec *pRec, assert(n >= 0 && (apr_size_t)n == len); - ssl_hook_process_connection (pRec); - + if ((ret = ssl_hook_process_connection(pRec)) != APR_SUCCESS) { + /* if this is the case, ssl connection has been shutdown + * and pRec->pssl has been freed + */ + return ret; + } + /* pass along all of the current BIO */ while ((n = ssl_io_hook_read(pRec->pssl, (unsigned char *)buf, sizeof(buf))) > 0)