changeset 8648:b80d9179ba2a quic

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.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 17 Nov 2020 21:12:36 +0000
parents 507da0d3b070
children 5a92523e50d3
files src/http/modules/ngx_http_chunked_filter_module.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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