fixed typo in hash-piece parser

This commit is contained in:
Arvid Norberg 2011-10-23 09:21:07 +00:00
parent 15f20c887d
commit 5e3e4c6146
1 changed files with 1 additions and 1 deletions

View File

@ -1225,7 +1225,7 @@ namespace libtorrent
#endif
lazy_entry hash_list;
error_code ec;
if (lazy_bdecode(recv_buffer.begin + 13, recv_buffer.end + 13 + list_size
if (lazy_bdecode(recv_buffer.begin + 13, recv_buffer.begin+ 13 + list_size
, hash_list, ec) != 0)
{
disconnect(errors::invalid_hash_piece, 2);