projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af194e
)
fix: Header SHA1 was giving false positive.
author
jbj
<devnull@localhost>
Sun, 21 Jul 2002 22:37:14 +0000
(22:37 +0000)
committer
jbj
<devnull@localhost>
Sun, 21 Jul 2002 22:37:14 +0000
(22:37 +0000)
CVS patchset: 5567
CVS date: 2002/07/21 22:37:14
lib/signature.c
patch
|
blob
|
history
diff --git
a/lib/signature.c
b/lib/signature.c
index
732be4f
..
78b134a
100644
(file)
--- a/
lib/signature.c
+++ b/
lib/signature.c
@@
-976,7
+976,7
@@
verifySHA1Signature(const rpmts ts, /*@out@*/ char * t,
(void) rpmDigestFinal(rpmDigestDup(sha1ctx),
(void **)&SHA1, NULL, 1);
- if (SHA1 == NULL || strlen(SHA1) != strlen(sig)) {
+ if (SHA1 == NULL || strlen(SHA1) != strlen(sig)
|| strcmp(SHA1, sig)
) {
res = RPMSIG_BAD;
t = stpcpy(t, rpmSigString(res));
t = stpcpy(t, " Expected(");