diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-03-18 15:28:20 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-03-18 15:28:20 +0300 |
commit | 04d037b239440bf7a2f422eb4b7c4e4e7652939e (patch) | |
tree | c7015d6d36dcbd49b923afd15e09e3cd582b9630 /src | |
parent | 2973465556eea419776003e1e5d62691e8e42568 (diff) | |
download | nginx-04d037b239440bf7a2f422eb4b7c4e4e7652939e.tar.gz nginx-04d037b239440bf7a2f422eb4b7c4e4e7652939e.zip |
Fixed pointer increment while parsing HTTP/3 header.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/v3/ngx_http_v3_request.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index e6cd27183..a9adcf8c2 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -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; |