projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: add a webserverconfig method to abstract config
[apt.git]
/
apt-pkg
/
contrib
/
sha2.h
diff --git
a/apt-pkg/contrib/sha2.h
b/apt-pkg/contrib/sha2.h
index 51c921dbd7af7344560a9a52b3573d2d845ccb1a..8e0c99a1b6631d1e3ff74d5207f8a08f3a8dee91 100644
(file)
--- a/
apt-pkg/contrib/sha2.h
+++ b/
apt-pkg/contrib/sha2.h
@@
-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));
};
};