From 3390c2356e98337dacaa3197ff93b0fe195dc8c6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 7 Sep 2013 15:28:43 +0900 Subject: [PATCH] Update doc --- lib/nghttp2_hd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index ffe3895e..e82874e0 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -306,6 +306,9 @@ static int emit_indexed_header(nghttp2_hd_context *context, nghttp2_hd_entry *ent) { int rv; + /* ent->ref may be 0. This happens if the careless stupid encoder + emits literal block larger than header table capacity with + indexing. */ rv = add_emit_set(context, ent); if(rv != 0) { return rv;