mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 02:58:40 +00: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
a0015da906
commit
32bb39c48f
1 changed files with 4 additions and 0 deletions
|
|
@ -2665,6 +2665,10 @@ ngx_http_spdy_close_stream(ngx_http_spdy_stream_t *stream, ngx_int_t rc)
|
|||
}
|
||||
}
|
||||
|
||||
if (sc->stream == stream) {
|
||||
sc->stream = NULL;
|
||||
}
|
||||
|
||||
if (stream->handled) {
|
||||
for (s = sc->last_stream; s; s = s->next) {
|
||||
if (s->next == stream) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue