From aa87130711b80eeef540293fe439c3e7d8974547 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 20 Jul 2013 01:01:29 +0900 Subject: [PATCH] Fix uninitialized nghttp2_hd_ws_entry index --- lib/nghttp2_hd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index 4f34652f..245b9909 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -385,6 +385,7 @@ static int add_workingset(nghttp2_hd_context *context, nghttp2_hd_entry *ent) ws_ent = &context->ws[context->wslen++]; ws_ent->cat = NGHTTP2_HD_CAT_INDEXED; ws_ent->indexed.entry = ent; + ws_ent->indexed.index = ent->index; ws_ent->indexed.checked = 1; ++ent->ref; return 0;