changeset 8230:31f7c697b6d9 quic

Fixed pointer increment while parsing HTTP/3 header.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 18 Mar 2020 15:28:20 +0300
parents cfc429911c0d
children 78540e2160d0
files src/http/v3/ngx_http_v3_request.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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_reques
         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;