diff --git a/src/storage.cpp b/src/storage.cpp index bd25871a5..8f5b7ebef 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -1756,6 +1756,7 @@ ret: { m_last_piece = piece_index; int slot = slot_for(piece_index); + if (slot <= 0) return; m_storage->hint_read(slot, offset, size); }