Home GnuPG
Diffusion GPGME ecfa88e65fda

core: Ensure r_key init in gpgme_get_key

Description

core: Ensure r_key init in gpgme_get_key

* src/keylist.c (gpgme_get_key): Move r_key init above
the first invalid value check.

This fixes the case where someone passes an unitialized
r_key and no fingerprint.

Details

Provenance
aheineckeAuthored on Oct 9 2018, 10:45 AM
Parents
rMbf4aae45129c: qt, tests: Add test for single get key
Branches
Unknown
Tags
Unknown