]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha2.h
Merge remote-tracking branch 'upstream/debian/sid' into feature/apt-binary2
[apt.git] / apt-pkg / contrib / sha2.h
index 51c921dbd7af7344560a9a52b3573d2d845ccb1a..8e0c99a1b6631d1e3ff74d5207f8a08f3a8dee91 100644 (file)
@@ -60,10 +60,11 @@ class SHA256Summation : public SHA2SummationBase
       res.Set(Sum);
       return res;
    };
-   SHA256Summation() 
+   SHA256Summation()
    {
       SHA256_Init(&ctx);
       Done = false;
+      memset(&Sum, 0, sizeof(Sum));
    };
 };
 
@@ -96,6 +97,7 @@ class SHA512Summation : public SHA2SummationBase
    {
       SHA512_Init(&ctx);
       Done = false;
+      memset(&Sum, 0, sizeof(Sum));
    };
 };