From 6540ac1babec2cb0a7942d60459dd1e05e1cb56f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 23 Jan 2014 21:25:49 +0900 Subject: [PATCH] Fix crash --- lib/nghttp2_session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 168e19d8..688f7b7f 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -168,6 +168,7 @@ static void nghttp2_inbound_frame_reset(nghttp2_session *session) nghttp2_frame_window_update_free(&iframe->frame.window_update); break; } + memset(&iframe->frame, 0, sizeof(nghttp2_frame)); iframe->state = NGHTTP2_RECV_HEAD; iframe->payloadlen = iframe->buflen = iframe->off = 0; iframe->headbufoff = 0;