diff options
author | Justus Winter <[email protected]> | 2016-11-07 11:53:17 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-11-07 11:57:30 +0000 |
commit | 5840353d8bbcd9e75374f3bdb2547ffa7bbea897 (patch) | |
tree | 47b55ec620e07c7e01df5aa8b8387e0d4edb62e9 /common/asshelp.c | |
parent | Change all http://www.gnu.org in license notices to https:// (diff) | |
download | gnupg-5840353d8bbcd9e75374f3bdb2547ffa7bbea897.tar.gz gnupg-5840353d8bbcd9e75374f3bdb2547ffa7bbea897.zip |
g10: Fix crash.
* g10/getkey.c (get_best_pubkey_byname): If 'get_pubkey_byname' does
not return a getkey context, then it can return at most one key,
therefore there is nothing to rank. Also, always initialize '*retctx'
to be on the safe side.
GnuPG-bug-id: 2828
Fixes: ab89164be02012f1bf159c971853b8610e966301
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/asshelp.c')
0 files changed, 0 insertions, 0 deletions