From 7b87d71121d7950d3fbc2f5483693a3ad55dfaa3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 18 Oct 2013 19:48:15 +0900 Subject: [PATCH] nghttp2_hd: Fix missing return value handling --- lib/nghttp2_hd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index 0d4a1221..eb36a163 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -857,6 +857,9 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater, be removed. */ ent->flags ^= NGHTTP2_HD_FLAG_REFSET; rv = emit_indexed_block(buf_ptr, buflen_ptr, &offset, ent->index); + if(rv != 0) { + goto fail; + } } ent->flags &= ~(NGHTTP2_HD_FLAG_EMIT | NGHTTP2_HD_FLAG_IMPLICIT_EMIT); }