mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 15:39:01 +08:00
SPDY: fixed possible segfault.
While processing a DATA frame, the link to related stream is stored in spdy connection object as part of connection state. But this stream can be closed between receiving parts of the frame.
This commit is contained in:
parent
ddc22dcb9c
commit
6b949b3920
@ -2626,6 +2626,10 @@ ngx_http_spdy_close_stream(ngx_http_spdy_stream_t *stream, ngx_int_t rc)
|
||||
}
|
||||
}
|
||||
|
||||
if (sc->stream == stream) {
|
||||
sc->stream = NULL;
|
||||
}
|
||||
|
||||
sscf = ngx_http_get_module_srv_conf(sc->http_connection->conf_ctx,
|
||||
ngx_http_spdy_module);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user