diff options
author | Michael Schroeder <mls@suse.de> | 2013-10-30 12:51:42 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-10-30 12:51:42 +0100 |
commit | f1d93ea9b8f70178b37492d71df67a17261a0976 (patch) | |
tree | 999e4cde2336083293f995d989d4110de922a662 /ext/repo_pubkey.c | |
parent | fa44b0ed91e66bdb9fb0bb49e32b1988cbaf1197 (diff) | |
download | libsolv-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.c | 2 |
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); |