Make sure that head_stream is not NULL

This commit is contained in:
Tatsuhiro Tsujikawa 2014-11-30 19:52:05 +09:00
parent d39b56adaa
commit 7e092a7658
1 changed files with 2 additions and 0 deletions

View File

@ -1108,6 +1108,8 @@ void nghttp2_session_adjust_closed_stream(nghttp2_session *session,
head_stream = session->closed_stream_head; head_stream = session->closed_stream_head;
assert(head_stream);
session->closed_stream_head = head_stream->closed_next; session->closed_stream_head = head_stream->closed_next;
if (session->closed_stream_head) { if (session->closed_stream_head) {