]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.cc
German translation proof read by Helge Kreutzmann
[apt.git] / apt-pkg / contrib / sha1.cc
index bf6bc6cb63ca2e5e21524a8d83a25e82bb88e5e0..298a7799bda9e5c23713958ecf5517f0f079d25b 100644 (file)
@@ -243,6 +243,8 @@ bool SHA1Summation::Add(const unsigned char *data,unsigned long long len)
 {
    if (Done)
       return false;
+   if (len == 0)
+      return true;
 
    uint32_t *state = (uint32_t *)State;
    uint32_t *count = (uint32_t *)Count;