]> git.saurik.com Git - apt.git/blobdiff - methods/rsh.cc
Deprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>
[apt.git] / methods / rsh.cc
index 0e949160bba35f7e7e4cf310ea28185f18c42ff9..52349c61c54d6b2054bc4937012b980f8e5c2e1f 100644 (file)
@@ -477,7 +477,7 @@ bool RSHMethod::Fetch(FetchItem *Itm)
    }
 
    // Open the file
    }
 
    // Open the file
-   Hashes Hash;
+   Hashes Hash(Itm->ExpectedHashes);
    {
       FileFd Fd(Itm->DestFile,FileFd::WriteAny);
       if (_error->PendingError() == true)
    {
       FileFd Fd(Itm->DestFile,FileFd::WriteAny);
       if (_error->PendingError() == true)