# HG changeset patch # User Roman Arutyunyan # Date 1584534500 -10800 # Node ID 31f7c697b6d987ce1a63cbad05a94a7bb18fe59f # Parent cfc429911c0d1b1f9b183ccd584da2ac0006f4ff Fixed pointer increment while parsing HTTP/3 header. diff -r cfc429911c0d -r 31f7c697b6d9 src/http/v3/ngx_http_v3_request.c --- a/src/http/v3/ngx_http_v3_request.c Wed Mar 18 13:49:39 2020 +0300 +++ b/src/http/v3/ngx_http_v3_request.c Wed Mar 18 15:28:20 2020 +0300 @@ -83,9 +83,8 @@ 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;