changeset 8291:4feae8bc0ca9 quic

Fixed buffer overflow.
author Roman Arutyunyan <arut@nginx.com>
date Fri, 27 Mar 2020 15:50:42 +0300
parents 9895d0fa8756
children 46e3542d51b3
files src/http/v3/ngx_http_v3_request.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c
+++ b/src/http/v3/ngx_http_v3_request.c
@@ -263,7 +263,7 @@ ngx_http_v3_create_header(ngx_http_reque
         return NULL;
     }
 
-    len = 0;
+    len = 2;
 
     if (r->headers_out.status == NGX_HTTP_OK) {
         len += ngx_http_v3_encode_prefix_int(NULL, 25, 6);