projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa44b0e
)
solvsig_verify: error out early if the checksum is finished
author
Michael Schroeder
<mls@suse.de>
Wed, 30 Oct 2013 11:51:42 +0000
(12:51 +0100)
committer
Michael Schroeder
<mls@suse.de>
Wed, 30 Oct 2013 11:51:42 +0000
(12:51 +0100)
ext/repo_pubkey.c
patch
|
blob
|
history
diff --git
a/ext/repo_pubkey.c
b/ext/repo_pubkey.c
index
5891e4e
..
13c4c8c
100644
(file)
--- a/
ext/repo_pubkey.c
+++ b/
ext/repo_pubkey.c
@@
-1197,6
+1197,8
@@
solvsig_verify(Solvsig *ss, Repo *repo, void *chk)
void *chk2;
Id p;
+ if (!chk || solv_chksum_isfinished(chk))
+ return 0;
pgpsig_init(&pgpsig, ss->sigpkt, ss->sigpktl);
chk2 = solv_chksum_create_clone(chk);
pgpsig_makesigdata(&pgpsig, ss->sigpkt, ss->sigpktl, 0, 0, 0, 0, chk2);