Fix malicious peer checking that was broken all this time (it didnt trigger)

This commit is contained in:
Igor Katson 2024-03-29 20:33:16 +00:00
parent 048f4d1645
commit cee66309d0
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -283,7 +283,7 @@ impl<'a, Sha1Impl: ISha1> FileOps<'a, Sha1Impl> {
piece_remaining_bytes -= to_read_in_file;
if piece_remaining_bytes == 0 {
return Ok(true);
break;
}
absolute_offset = 0;