# HG changeset patch # User Sergey Kandaurov # Date 1632309043 -10800 # Node ID ea9b645472b5cb381075a3a9638da48bef1feb55 # Parent 33578b8d453db0cef945c5d1fde77fafeeb2603c HTTP/3: fixed null pointer dereference with server push. See details for HTTP/2 fix in 8b0553239592 for a complete description. diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c --- a/src/http/v3/ngx_http_v3_filter_module.c +++ b/src/http/v3/ngx_http_v3_filter_module.c @@ -858,6 +858,10 @@ ngx_http_v3_push_resource(ngx_http_reque return NGX_ABORT; } + if (r->headers_in.host == NULL) { + return NGX_ABORT; + } + push_id = h3c->next_push_id++; rc = ngx_http_v3_create_push_request(r, path, push_id);