Fix invalid memory use

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-11 21:33:22 +09:00
parent 40f04fbe03
commit d3fb352c0e
1 changed files with 4 additions and 0 deletions

View File

@ -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;