diff options
author | Werner Koch <[email protected]> | 2018-03-20 09:41:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-03-20 09:41:18 +0000 |
commit | 343d3e2232a22d0999e1693f0f95e5e290005829 (patch) | |
tree | 737315e72d57638709763f41febb22e59c84d987 /lang/python/examples/howto/keycount.py | |
parent | core: Fix ABI regression in recent commit. (diff) | |
download | gpgme-343d3e2232a22d0999e1693f0f95e5e290005829.tar.gz gpgme-343d3e2232a22d0999e1693f0f95e5e290005829.zip |
core: Do not clobber R_KEY in gpgme_get_key on error.
* src/keylist.c (gpgme_get_key): Assign a value to the return
parameter only on success.
--
This problem could be triggered by an ambiguous key. The problem is
that the key returned in that case is for one not expected and worse
it has not been ref-ed.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'lang/python/examples/howto/keycount.py')
0 files changed, 0 insertions, 0 deletions