From 5a1fa2e042f72f4239915450170220ecee7715c3 Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 18 Mar 2020 18:38:28 +0300 Subject: [PATCH] conn_tool: proper handling of gzip encoding/decoding result --- src/connectivity_tool/conn_tool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/connectivity_tool/conn_tool.cpp b/src/connectivity_tool/conn_tool.cpp index 79b5aa0b..604ced91 100644 --- a/src/connectivity_tool/conn_tool.cpp +++ b/src/connectivity_tool/conn_tool.cpp @@ -1142,7 +1142,9 @@ bool process_archive(archive_processor_t& arch_processor, bool is_packing, std:: if (is_packing) hash_stream.update(buff.data(), buff.size()); - arch_processor.update_in(buff, writer_cb); + bool r = arch_processor.update_in(buff, writer_cb); + CHECK_AND_ASSERT_MES(r, false, "arch_processor.update_in failed"); + remaining -= read_sz; std::cout << "Progress: " << ((sz - remaining) * 100) / sz << "%\r";