Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3_request.c @ 7757:4feae8bc0ca9 quic
Fixed buffer overflow.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 27 Mar 2020 15:50:42 +0300 |
parents | 69365c7bb07f |
children | 46e3542d51b3 |
comparison
equal
deleted
inserted
replaced
7756:9895d0fa8756 | 7757:4feae8bc0ca9 |
---|---|
261 /* XXX support chunked body in the chunked filter */ | 261 /* XXX support chunked body in the chunked filter */ |
262 if (!r->header_only && r->headers_out.content_length_n == -1) { | 262 if (!r->header_only && r->headers_out.content_length_n == -1) { |
263 return NULL; | 263 return NULL; |
264 } | 264 } |
265 | 265 |
266 len = 0; | 266 len = 2; |
267 | 267 |
268 if (r->headers_out.status == NGX_HTTP_OK) { | 268 if (r->headers_out.status == NGX_HTTP_OK) { |
269 len += ngx_http_v3_encode_prefix_int(NULL, 25, 6); | 269 len += ngx_http_v3_encode_prefix_int(NULL, 25, 6); |
270 | 270 |
271 } else { | 271 } else { |