Check SOME fastresume data, dont trust it completely.

This commit is contained in:
Igor Katson 2024-08-29 14:23:09 +01:00
parent babe470f9a
commit 9225e126d9
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 67 additions and 25 deletions

View file

@ -1557,7 +1557,7 @@ impl PeerHandler {
match state
.file_ops()
.check_piece(addr, chunk_info.piece_index, chunk_info)
.check_piece(chunk_info.piece_index)
.with_context(|| format!("error checking piece={index}"))?
{
true => {