mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* modules/ssl/ssl_util_ocsp.c (get_line): Don't set line[-1] to 0
when len == 0. Submitted by: Jim Meyering <meyering redhat.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1358061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -153,7 +153,13 @@ static char *get_line(apr_bucket_brigade *bbout, apr_bucket_brigade *bbin,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (len && line[len-1] != APR_ASCII_LF) {
|
||||
if (len == 0) {
|
||||
ap_log_cerror(APLOG_MARK, APLOG_ERR, rv, c, APLOGNO(02321)
|
||||
"empty response from OCSP server");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (line[len-1] != APR_ASCII_LF) {
|
||||
ap_log_cerror(APLOG_MARK, APLOG_ERR, rv, c, APLOGNO(01979)
|
||||
"response header line too long from OCSP server");
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user