Mercurial > hg > nginx
comparison src/http/ngx_http_spdy.c @ 5524:03c198bb2acf
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 22 Jan 2014 04:58:19 +0400 |
parents | a336cbc3dd44 |
children | 206c56e23a96 |
comparison
equal
deleted
inserted
replaced
5523:905841c461fa | 5524:03c198bb2acf |
---|---|
2663 { | 2663 { |
2664 sc->connection->error = 1; | 2664 sc->connection->error = 1; |
2665 } | 2665 } |
2666 } | 2666 } |
2667 | 2667 |
2668 if (sc->stream == stream) { | |
2669 sc->stream = NULL; | |
2670 } | |
2671 | |
2668 if (stream->handled) { | 2672 if (stream->handled) { |
2669 for (s = sc->last_stream; s; s = s->next) { | 2673 for (s = sc->last_stream; s; s = s->next) { |
2670 if (s->next == stream) { | 2674 if (s->next == stream) { |
2671 s->next = stream->next; | 2675 s->next = stream->next; |
2672 break; | 2676 break; |