index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-11-03 01:16:32 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-09 12:43:37 +1000 |
commit | 5f5469c7746ee1699433060030bbd2e6ee43ced7 (patch) | |
tree | 7fa20de201d4480883a2e7984a0ce21d1567e9cf /lib/libalpm/signing.c | |
parent | 0d89c10f4b12cb574223a23776c26144c6bceccd (diff) |
-rw-r--r-- | lib/libalpm/signing.c | 5 |
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index aa7e134a..a57c9463 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -192,6 +192,11 @@ int _alpm_key_in_keychain(alpm_handle_t *handle, const char *fpr) gpgme_key_t key; int ret = -1; + if(init_gpgme(handle)) { + /* pm_errno was set in gpgme_init() */ + goto error; + } + memset(&ctx, 0, sizeof(ctx)); err = gpgme_new(&ctx); CHECK_ERR(); |