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@90155
13f79535-47bb-0310-9956-
ffa450edef68
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)