X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=lib-crypt%2Fpgp.c;h=7147bf1e84cc134ea91e34a9f9e7a6b0d870c4ec;hb=10e80e482eff3762b0b8d41b0c7795b76704479c;hp=0a35e6ba496d2accea89505b2a0a41f07564f02b;hpb=3e9a92ab72e04aecb0fc4098098a1b57c5101d84;p=apps%2Fmadmutt.git diff --git a/lib-crypt/pgp.c b/lib-crypt/pgp.c index 0a35e6b..7147bf1 100644 --- a/lib-crypt/pgp.c +++ b/lib-crypt/pgp.c @@ -1144,8 +1144,8 @@ char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc) } else if (r == -1) { p_delete(&keylist); - address_delete (&tmp); - address_delete (&addr); + address_list_wipe(&tmp); + address_list_wipe(&addr); return NULL; } } @@ -1161,8 +1161,8 @@ char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc) if ((key = pgp_ask_for_key (buf, q->mailbox, KEYFLAG_CANENCRYPT, PGP_PUBRING)) == NULL) { p_delete(&keylist); - address_delete (&tmp); - address_delete (&addr); + address_list_wipe(&tmp); + address_list_wipe(&addr); return NULL; } } @@ -1179,10 +1179,10 @@ char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc) keylist_used = m_strlen(keylist); pgp_free_key (&key); - address_delete (&addr); + address_list_wipe(&addr); } - address_delete (&tmp); + address_list_wipe(&tmp); return (keylist); }