From 344d663e906018738dc40b49eeb9c1840689a548 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 14 Mar 2014 00:25:03 +0900 Subject: [PATCH] deflate_hd: Fix mishandled error return from emit_indexed_block --- lib/nghttp2_hd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_hd.c b/lib/nghttp2_hd.c index 96df4ad7..33c54ee1 100644 --- a/lib/nghttp2_hd.c +++ b/lib/nghttp2_hd.c @@ -1046,7 +1046,7 @@ static int deflate_nv(nghttp2_hd_deflater *deflater, for(; num_emits > 0; --num_emits) { rv = emit_indexed_block(bufs, index); if(rv != 0) { - break; + return rv; } } }