summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-07 18:10:52 +0200
committerMichael Vogt <mvo@debian.org>2014-05-07 18:10:52 +0200
commit00026265672f2663e0aa0ab1a3fa7333f718a643 (patch)
tree841fc7de4952b7ac0f535555ff8ddbce752b955e /apt-pkg/acquire-item.cc
parent38d2959ffb8c6f5f291b2910014a67b1b352ab4c (diff)
parentaaf677da5b62d3d0fdeb26f9b4c63fed544b63cd (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.cc3
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;