diff options
author | Andre Heinecke <[email protected]> | 2019-04-18 11:19:05 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2019-04-18 12:24:58 +0000 |
commit | e57954ed278cb5e6e725005b1ecaf7ce70006ce0 (patch) | |
tree | b2a969fa3272e4a581d92866c08cf4afc651dbd5 /common/t-ssh-utils.c | |
parent | g10: Fix a memory leak. (diff) | |
download | gnupg-e57954ed278cb5e6e725005b1ecaf7ce70006ce0.tar.gz gnupg-e57954ed278cb5e6e725005b1ecaf7ce70006ce0.zip |
g10: Fix double free when locating by mbox
* g10/getkey.c (get_best_pubkey_byname): Set new.uid always
to NULL after use.
--
pubkey_cmp is not guranteed to set new.uid.
So if the diff < 0 case is reached best is set to new.
If then diff > 0 is reached without modifying new.uid
e.g. if the key has no matching mboxes. new.uid is
free'd even though the uid is still referenced in
best.
GnuPG-Bug-Id: T4462
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions