nghttpx: Fix crash on http2 downstream disconnect

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-31 23:34:33 +09:00
parent d848b9815a
commit 2e083352d5
1 changed files with 4 additions and 0 deletions

View File

@ -1556,6 +1556,10 @@ int Http2Session::consume(int32_t stream_id, size_t len)
{ {
int rv; int rv;
if(!session_) {
return 0;
}
rv = nghttp2_session_consume(session_, stream_id, len); rv = nghttp2_session_consume(session_, stream_id, len);
if(rv != 0) { if(rv != 0) {