summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);