fix bug in protocol encryption/obfuscation

This commit is contained in:
arvidn 2019-12-06 14:44:26 +01:00 committed by Arvid Norberg
parent f49d194186
commit 26ec7921c3
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* fix bug in protocol encryption/obfuscation
* fix buffer overflow in SOCKS5 UDP logic
* fix issue of rapid calls to file_priority() clobbering each other
* clear tracker errors on success

View File

@ -328,7 +328,7 @@ namespace libtorrent {
std::tuple<int, int, int> rc4_handler::decrypt(span<span<char>> bufs)
{
if (!m_decrypt) std::make_tuple(0, 0, 0);
if (!m_decrypt) return std::make_tuple(0, 0, 0);
int bytes_processed = 0;
for (auto& buf : bufs)