summaryrefslogtreecommitdiff
path: root/ext/repo_pubkey.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-10-30 12:51:42 +0100
committerMichael Schroeder <mls@suse.de>2013-10-30 12:51:42 +0100
commitf1d93ea9b8f70178b37492d71df67a17261a0976 (patch)
tree999e4cde2336083293f995d989d4110de922a662 /ext/repo_pubkey.c
parentfa44b0ed91e66bdb9fb0bb49e32b1988cbaf1197 (diff)
downloadlibsolv-f1d93ea9b8f70178b37492d71df67a17261a0976.tar.gz
libsolv-f1d93ea9b8f70178b37492d71df67a17261a0976.tar.bz2
libsolv-f1d93ea9b8f70178b37492d71df67a17261a0976.zip
solvsig_verify: error out early if the checksum is finished
Diffstat (limited to 'ext/repo_pubkey.c')
-rw-r--r--ext/repo_pubkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/repo_pubkey.c b/ext/repo_pubkey.c
index 5891e4e..13c4c8c 100644
--- 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);