Fixed pointer increment while parsing HTTP/3 header.

This commit is contained in:
Roman Arutyunyan 2020-03-18 15:28:20 +03:00
parent 2973465556
commit 04d037b239

View File

@ -83,9 +83,8 @@ ngx_http_v3_parse_header(ngx_http_request_t *r, ngx_buf_t *b)
break;
}
for ( /* void */ ; b->pos < b->last; b->pos++) {
rc = ngx_http_v3_parse_headers(c, st, *b->pos);
while (b->pos < b->last) {
rc = ngx_http_v3_parse_headers(c, st, *b->pos++);
if (rc == NGX_ERROR) {
goto failed;