diff options
author | defanor <defanor@uberspace.net> | 2021-02-07 20:09:55 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-02-07 20:09:55 +0300 |
commit | f0ca5ed9f1c3c1754464087880b4e3c0349d51d9 (patch) | |
tree | a3f9b3883ca9932d257db26e7b0160dd350c40e6 | |
parent | 002937b365969329f8345e8161e1fc12520e2312 (diff) |
Clear the list of signers before filling it again
Retracted keys may still stay there otherwise.
-rw-r--r-- | src/rexmpp_openpgp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rexmpp_openpgp.c b/src/rexmpp_openpgp.c index 9447157..dbc0a0a 100644 --- a/src/rexmpp_openpgp.c +++ b/src/rexmpp_openpgp.c @@ -698,6 +698,7 @@ char *rexmpp_openpgp_encrypt_sign (rexmpp_t *s, /* Add own keys for encryption and signing. */ rexmpp_openpgp_add_keys(s, s->initial_jid.bare, &keys, &nkeys, &allocated); + gpgme_signers_clear(s->pgp_ctx); for (i = 0; i < nkeys; i++) { /* Check that the key can be used to sign data, and that we have the secret key. */ |