diff --git a/libc3_web/ec3.c b/libc3_web/ec3.c
index 67e22f0..442cf64 100644
--- a/libc3_web/ec3.c
+++ b/libc3_web/ec3.c
@@ -179,6 +179,8 @@ sw ec3_buf_parse_c3_block (s_buf *buf, s_block *dest)
r = -1;
goto clean;
}
+ result += r;
+
clean:
buf_save_clean(buf, &save);
return r;