Home GnuPG
Diffusion GnuPG 5840353d8bbc

g10: Fix crash.
5840353d8bbcUnpublished

Unpublished Commit ยท Learn More

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

Description

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.

Fixes: ab89164be02012f1bf159c971853b8610e966301

  • GnuPG-bug-id: T2828
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 7 2016, 12:53 PM
Parents
rG4d7dc432b598: Change all http://www.gnu.org in license notices to https://
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG5840353d8bbc: g10: Fix crash. (authored by Justus Winter <justus@g10code.com>).Nov 7 2016, 12:57 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:10 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:33 PM