From 2e083352d5114a3e746d1e0609247a244a11b77e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 31 Jul 2014 23:34:33 +0900 Subject: [PATCH] nghttpx: Fix crash on http2 downstream disconnect --- src/shrpx_http2_session.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shrpx_http2_session.cc b/src/shrpx_http2_session.cc index fa54dd01..a7117248 100644 --- a/src/shrpx_http2_session.cc +++ b/src/shrpx_http2_session.cc @@ -1556,6 +1556,10 @@ int Http2Session::consume(int32_t stream_id, size_t len) { int rv; + if(!session_) { + return 0; + } + rv = nghttp2_session_consume(session_, stream_id, len); if(rv != 0) {