mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 02:42:48 +08:00
SPDY: fixed one case of improper memory allocation error handling.
Now ngx_http_spdy_construct_request_line() doesn't try to finalize request in case of failed memory allocation.
This commit is contained in:
parent
5a3d4410cc
commit
d9c25cdf19
@ -2900,7 +2900,8 @@ ngx_http_spdy_construct_request_line(ngx_http_request_t *r)
|
|||||||
|
|
||||||
p = ngx_pnalloc(r->pool, r->request_line.len + 1);
|
p = ngx_pnalloc(r->pool, r->request_line.len + 1);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
|
ngx_http_spdy_close_stream(r->spdy_stream,
|
||||||
|
NGX_HTTP_INTERNAL_SERVER_ERROR);
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user