Fix crash caused by the regression in 9f8fc7b2bb

This commit is contained in:
Tatsuhiro Tsujikawa 2015-12-17 22:22:22 +09:00
parent 9f8fc7b2bb
commit 80f7abb565
1 changed files with 3 additions and 3 deletions

View File

@ -3725,11 +3725,11 @@ int nghttp2_session_on_rst_stream_received(nghttp2_session *session,
return session_handle_invalid_connection(
session, frame, NGHTTP2_ERR_PROTO, "RST_STREAM: stream in idle");
}
} else {
/* We may use stream->shut_flags for strict error checking. */
nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
}
/* We may use stream->shut_flags for strict error checking. */
nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
rv = session_call_on_frame_received(session, frame);
if (rv != 0) {
return rv;