nghttp: Fix crash on PUSH_PROMISE

This commit is contained in:
Tatsuhiro Tsujikawa 2014-04-29 15:08:57 +09:00
parent c69f6f4186
commit bc50062964
1 changed files with 1 additions and 1 deletions

View File

@ -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<Request*>{req});