Commit bd64619c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix segmentation fault

Fix segmentation fault if DATA frame is received for the stream
which is already closed.
parent ab56cd4e
...@@ -2738,7 +2738,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session, ...@@ -2738,7 +2738,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
(data_flags & NGHTTP2_FLAG_END_STREAM) == 0)) { (data_flags & NGHTTP2_FLAG_END_STREAM) == 0)) {
nghttp2_stream *stream; nghttp2_stream *stream;
stream = nghttp2_session_get_stream(session, data_stream_id); stream = nghttp2_session_get_stream(session, data_stream_id);
if(session->local_flow_control || stream->local_flow_control) { if(session->local_flow_control ||
(stream && stream->local_flow_control)) {
r = nghttp2_session_update_recv_window_size(session, r = nghttp2_session_update_recv_window_size(session,
stream, stream,
readlen); readlen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment