Commit d3fb352c authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix invalid memory use

parent 40f04fbe
...@@ -1539,6 +1539,10 @@ void test_nghttp2_session_on_push_promise_received(void) ...@@ -1539,6 +1539,10 @@ void test_nghttp2_session_on_push_promise_received(void)
memset(session->iframe.buf, 0, 4); memset(session->iframe.buf, 0, 4);
session->iframe.buflen = 4; session->iframe.buflen = 4;
stream = nghttp2_session_open_stream(session, 1, NGHTTP2_STREAM_FLAG_NONE,
NGHTTP2_PRI_DEFAULT,
NGHTTP2_STREAM_OPENING, NULL);
/* Same ID twice */ /* Same ID twice */
stream->state = NGHTTP2_STREAM_OPENING; stream->state = NGHTTP2_STREAM_OPENING;
......
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