From 80f7abb565b4e92bab11759d4efefd6119220a6d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 17 Dec 2015 22:22:22 +0900 Subject: [PATCH] Fix crash caused by the regression in 9f8fc7b2bb5614886f4eea6dacb22f95246356a9 --- lib/nghttp2_session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 98b75bb9..0e32fc18 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -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;