From bc50062964c983fb669bb097cc0f04e43d6c193b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 29 Apr 2014 15:08:57 +0900 Subject: [PATCH] nghttp: Fix crash on PUSH_PROMISE --- src/nghttp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index d9b676e4..64435b52 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -1094,7 +1094,7 @@ void check_stream_id(nghttp2_session *session, int32_t stream_id, client->streams[stream_id] = req; req->record_request_time(); - if(req->pri == 0) { + if(req->pri == 0 && req->dep) { assert(req->dep->deps.empty()); req->dep->deps.push_back(std::vector{req});