]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/md5.cc
Bug #807012 also involves package dependencies :/.
[apt.git] / apt-pkg / contrib / md5.cc
index b487a96f9bb30ca289be03f6f0f073b7e6f542f5..ff7868fe20919403cf7574b90dd53012b4c32ff3 100644 (file)
@@ -187,6 +187,8 @@ bool MD5Summation::Add(const unsigned char *data,unsigned long long len)
 {
    if (Done == true)
       return false;
+   if (len == 0)
+      return true;
 
    uint32_t *buf = (uint32_t *)Buf;
    uint32_t *bytes = (uint32_t *)Bytes;