mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* modules/ssl/ssl_util_ocsp.c (read_response): Bail out if the maximum
response-header count is exceeded. Also bump to APLOG_ERR the log message given after a header read error. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@600482 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -207,8 +207,14 @@ static OCSP_RESPONSE *read_response(apr_socket_t *sd, BIO *bio, conn_rec *c,
|
|||||||
"OCSP response header: %s", line);
|
"OCSP response header: %s", line);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!line) {
|
if (count == MAX_HEADERS) {
|
||||||
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c,
|
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c,
|
||||||
|
"could not read response headers from OCSP server, "
|
||||||
|
"exceeded maximum count (%u)", MAX_HEADERS);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
else if (!line) {
|
||||||
|
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c,
|
||||||
"could not read response header from OCSP server");
|
"could not read response header from OCSP server");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user