library code as well as the reason code when looking for the
plain-HTTP-request error.
Submitted by: Stephen Henson <steve@openssl.org>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101135
13f79535-47bb-0310-9956-
ffa450edef68
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.