Header names not followed by a colon and a value in an OCSP responder
reply were accepted as headers with an empty value, similarly to
ngx_http_parse_header_line(). With this change, such headers are
rejected with the "OCSP responder sent invalid response" error, and the
response is not used.
The problem appeared in
74ad4494a (1.3.7).
break;
}
- if (ch == CR) {
- ctx->header_name_end = p;
- ctx->header_start = p;
- ctx->header_end = p;
- state = sw_almost_done;
- break;
- }
-
- if (ch == LF) {
- ctx->header_name_end = p;
- ctx->header_start = p;
- ctx->header_end = p;
- goto done;
- }
-
return NGX_ERROR;
/* space* before header value */