Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3_filter_module.c @ 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 | 5a2080d48da8 |
comparison
equal
deleted
inserted
replaced
8625:33578b8d453d | 8626:ea9b645472b5 |
---|---|
856 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, | 856 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, |
857 "http3 abort pushes due to max_concurrent_pushes"); | 857 "http3 abort pushes due to max_concurrent_pushes"); |
858 return NGX_ABORT; | 858 return NGX_ABORT; |
859 } | 859 } |
860 | 860 |
861 if (r->headers_in.host == NULL) { | |
862 return NGX_ABORT; | |
863 } | |
864 | |
861 push_id = h3c->next_push_id++; | 865 push_id = h3c->next_push_id++; |
862 | 866 |
863 rc = ngx_http_v3_create_push_request(r, path, push_id); | 867 rc = ngx_http_v3_create_push_request(r, path, push_id); |
864 if (rc != NGX_OK) { | 868 if (rc != NGX_OK) { |
865 return rc; | 869 return rc; |