forked from lthn/blockchain
fixed the same bug in gzip_encoder_lyambda::stop()
This commit is contained in:
parent
36af9759a2
commit
cefa4b561f
1 changed files with 4 additions and 2 deletions
|
|
@ -345,8 +345,10 @@ namespace net_utils
|
|||
result_packed_buff.resize(result_packed_buff.size() * 2);
|
||||
continue;
|
||||
}
|
||||
if (result_packed_buff.size() != m_zstream.avail_out)
|
||||
result_packed_buff.resize(result_packed_buff.size() - m_zstream.avail_out);
|
||||
|
||||
CHECK_AND_ASSERT_MES(result_packed_buff.size() >= m_zstream.avail_out, false, "result_packed_buff.size()=" << result_packed_buff.size() << " >= m_zstream.avail_out=" << m_zstream.avail_out);
|
||||
result_packed_buff.resize(result_packed_buff.size() - m_zstream.avail_out);
|
||||
|
||||
m_initialized = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue