forked from lthn/blockchain
fixed an old and rare bug in gzip encoding
This commit is contained in:
parent
40097d776b
commit
36af9759a2
1 changed files with 2 additions and 2 deletions
|
|
@ -311,8 +311,8 @@ 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);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue