diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-07 18:10:52 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-07 18:10:52 +0200 |
commit | 00026265672f2663e0aa0ab1a3fa7333f718a643 (patch) | |
tree | 841fc7de4952b7ac0f535555ff8ddbce752b955e /apt-pkg/acquire-item.cc | |
parent | 38d2959ffb8c6f5f291b2910014a67b1b352ab4c (diff) | |
parent | aaf677da5b62d3d0fdeb26f9b4c63fed544b63cd (diff) |
Merge remote-tracking branch 'mvo/feature/apt-install-deb' into debian/experimental
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index f8a652534..e851432e9 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -2095,7 +2095,8 @@ void pkgAcqArchive::Done(string Message,unsigned long long Size,string CalcHash, } // Check the hash - if(ExpectedHash.toStr() != CalcHash) + // FIXME: could this empty() check impose *any* sort of security issue? + if(ExpectedHash.empty() == false && ExpectedHash.toStr() != CalcHash) { RenameOnError(HashSumMismatch); return; |