mirror of
https://github.com/nginx/nginx.git
synced 2025-07-26 07:06:55 +08:00
HTTP/3: fixed null pointer dereference with server push.
See details for HTTP/2 fix in 8b0553239592 for a complete description.
This commit is contained in:
parent
08dcf62f5b
commit
2cd173d450
@ -858,6 +858,10 @@ ngx_http_v3_push_resource(ngx_http_request_t *r, ngx_str_t *path,
|
|||||||
return NGX_ABORT;
|
return NGX_ABORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (r->headers_in.host == NULL) {
|
||||||
|
return NGX_ABORT;
|
||||||
|
}
|
||||||
|
|
||||||
push_id = h3c->next_push_id++;
|
push_id = h3c->next_push_id++;
|
||||||
|
|
||||||
rc = ngx_http_v3_create_push_request(r, path, push_id);
|
rc = ngx_http_v3_create_push_request(r, path, push_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user