diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-11-17 21:12:36 +0000 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-11-17 21:12:36 +0000 |
commit | 49f0b0d99d70fa4e895b939a320c29df28a34fff (patch) | |
tree | 3a9c4bdf44612ca6796cc1cdfb0139900d004eae /src | |
parent | 5a9a897d7b632d6123aacabf1c0f141db0ad799b (diff) | |
download | nginx-49f0b0d99d70fa4e895b939a320c29df28a34fff.tar.gz nginx-49f0b0d99d70fa4e895b939a320c29df28a34fff.zip |
HTTP/3: finalize chunked response body chain with NULL.
Unfinalized chain could result in segfault. The problem was introduced in
ef83990f0e25.
Patch by Andrey Kolyshkin.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_chunked_filter_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_chunked_filter_module.c b/src/http/modules/ngx_http_chunked_filter_module.c index 371559e2f..138369815 100644 --- a/src/http/modules/ngx_http_chunked_filter_module.c +++ b/src/http/modules/ngx_http_chunked_filter_module.c @@ -216,6 +216,9 @@ ngx_http_chunked_body_filter(ngx_http_request_t *r, ngx_chain_t *in) cl->buf->last_buf = 0; *ll = tl; + + } else { + *ll = NULL; } } else |