aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-03-27 15:50:42 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-03-27 15:50:42 +0300
commit81f7cff632d7db267be42f5451c6e1f29d021685 (patch)
tree182288e0a732865c101ab3f7467674b4b8761279 /src/http/v3/ngx_http_v3_request.c
parent3fbdc04072afc261d096450b4e391d7f3fe01f54 (diff)
downloadnginx-81f7cff632d7db267be42f5451c6e1f29d021685.tar.gz
nginx-81f7cff632d7db267be42f5451c6e1f29d021685.zip
Fixed buffer overflow.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r--src/http/v3/ngx_http_v3_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c
index 542fc387d..b00b93ce2 100644
--- 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_request_t *r)
return NULL;
}
- len = 0;
+ len = 2;
if (r->headers_out.status == NGX_HTTP_OK) {
len += ngx_http_v3_encode_prefix_int(NULL, 25, 6);