Commit efa344be authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Add assert to ensure non-null dep_stream

parent 2ba9a009
......@@ -613,6 +613,8 @@ int nghttp2_session_reprioritize_stream
return rv;
}
assert(dep_stream);
if(nghttp2_stream_dep_subtree_find(stream, dep_stream)) {
DEBUGF(fprintf(stderr,
"stream: cycle detected, dep_stream(%p)=%d "
......@@ -879,6 +881,8 @@ nghttp2_stream* nghttp2_session_open_stream(nghttp2_session *session,
for those which have upload data. Currently, we just track
everything. */
assert(dep_stream);
root_stream = nghttp2_stream_get_dep_root(dep_stream);
if(root_stream->num_substreams < NGHTTP2_MAX_DEP_TREE_LENGTH) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment