Mercurial > hg > nginx-quic
changeset 8626:ea9b645472b5 quic
HTTP/3: fixed null pointer dereference with server push.
See details for HTTP/2 fix in 8b0553239592 for a complete description.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 22 Sep 2021 14:10:43 +0300 |
parents | 33578b8d453d |
children | 646bb5361437 |
files | src/http/v3/ngx_http_v3_filter_module.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);