Mercurial > hg > nginx
comparison src/http/ngx_http_spdy.c @ 5565:b8e6297358b5 stable-1.4
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 | bd91997a1117 |
children | e7f7d30196e3 |
comparison
equal
deleted
inserted
replaced
5564:7e38aafc0342 | 5565:b8e6297358b5 |
---|---|
2624 { | 2624 { |
2625 sc->connection->error = 1; | 2625 sc->connection->error = 1; |
2626 } | 2626 } |
2627 } | 2627 } |
2628 | 2628 |
2629 if (sc->stream == stream) { | |
2630 sc->stream = NULL; | |
2631 } | |
2632 | |
2629 sscf = ngx_http_get_module_srv_conf(sc->http_connection->conf_ctx, | 2633 sscf = ngx_http_get_module_srv_conf(sc->http_connection->conf_ctx, |
2630 ngx_http_spdy_module); | 2634 ngx_http_spdy_module); |
2631 | 2635 |
2632 index = sc->streams_index + ngx_http_spdy_stream_index(sscf, stream->id); | 2636 index = sc->streams_index + ngx_http_spdy_stream_index(sscf, stream->id); |
2633 | 2637 |