]> git.kaiwu.me - nginx.git/commitdiff
Fixed pointer increment while parsing HTTP/3 header.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 18 Mar 2020 12:28:20 +0000 (15:28 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 18 Mar 2020 12:28:20 +0000 (15:28 +0300)
src/http/v3/ngx_http_v3_request.c

index e6cd27183f03e1f07f689dadeae300cce4749338..a9adcf8c2457827a9e6f74ed21fc52ce21b51f1a 100644 (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;