diff options
author | Arno Töll <arno@debian.org> | 2012-10-20 02:58:14 +0200 |
---|---|---|
committer | Arno Töll <arno@debian.org> | 2012-10-20 02:58:14 +0200 |
commit | 5c4fba3ffbe778bdffe10a93d04821579601a020 (patch) | |
tree | 91be9a7f99d3988ba48b0a619479aa46a3234191 /modules/ssl/ssl_util_ocsp.c | |
parent | 8f9c15530d0bc387af114619b3ff3f930eb23d3c (diff) | |
download | apache2-5c4fba3ffbe778bdffe10a93d04821579601a020.tar.gz |
Imported Upstream version 2.4.3upstream/2.4.3
Diffstat (limited to 'modules/ssl/ssl_util_ocsp.c')
-rw-r--r-- | modules/ssl/ssl_util_ocsp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/ssl/ssl_util_ocsp.c b/modules/ssl/ssl_util_ocsp.c index 94ef4cd0..e5c5e58d 100644 --- a/modules/ssl/ssl_util_ocsp.c +++ b/modules/ssl/ssl_util_ocsp.c @@ -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; |