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; } } }