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 #endif
lazy_entry hash_list; lazy_entry hash_list;
error_code ec; 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) , hash_list, ec) != 0)
{ {
disconnect(errors::invalid_hash_piece, 2); disconnect(errors::invalid_hash_piece, 2);