Home GnuPG
Diffusion GPGME b5075030bec9

core: Fix leakage of address for mail only uids
b5075030bec9Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

core: Fix leakage of address for mail only uids

* src/key.c (gpgme_key_unref): Always free address if set.
(_gpgme_key_append_name): Remove memory optimization for address.

The check if address is not allocated would now be more complicated
then just comparing it to email because email is set to address
also when an email was not parsed from the user id.

Details

Provenance
aheineckeAuthored on Feb 1 2017, 6:03 PM
Parents
rMa28d31fdb623: core: Improve mailbox only uid handling
Branches
Unknown
Tags
Unknown

Event Timeline

Andre Heinecke <aheinecke@intevation.de> committed rMb5075030bec9: core: Fix leakage of address for mail only uids (authored by Andre Heinecke <aheinecke@intevation.de>).Feb 1 2017, 6:06 PM