summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2018-11-10 15:26:24 -0500
committerJason Woodward2018-11-10 15:26:24 -0500
commitd453d71cef215db41eac690a9f5bae80ea6cd0dc (patch)
tree981e3920b808c3bcce3786aa3e55c942681182e9
parentab2b470b115e8a554c2c8cecb95f0f51a7e61455 (diff)
downloadslapt-get-d453d71cef215db41eac690a9f5bae80ea6cd0dc.tar.gz
check if no signatures returned from gpgme_op_verify_result
-rw-r--r--src/gpgme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index 4823754..49d46b4 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -301,6 +301,9 @@ slapt_code_t slapt_gpg_verify_checksums(FILE *checksums,
gpgme_verify_result_t verify_result = gpgme_op_verify_result(*ctx);
if (verify_result != NULL) {
gpgme_signature_t sig = verify_result->signatures;
+ if (sig == NULL) {
+ return verified;
+ }
gpgme_sigsum_t sum = sig->summary;
gpgme_error_t status = sig->status;