# HG changeset patch # User Roman Arutyunyan # Date 1605647556 0 # Node ID b80d9179ba2a4c3a68add5d9155f6e6dbb98248d # Parent 507da0d3b07007d2bbdb3753fc2b952edda8b543 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. diff --git a/src/http/modules/ngx_http_chunked_filter_module.c b/src/http/modules/ngx_http_chunked_filter_module.c --- 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_re cl->buf->last_buf = 0; *ll = tl; + + } else { + *ll = NULL; } } else