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	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;