Fix malicious peer checking that was broken all this time (it didnt trigger)
This commit is contained in:
parent
048f4d1645
commit
cee66309d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue