Home GnuPG
Diffusion GnuPG fdb653a33ea1

agent: Slightly change structure of cmd_readkey.
fdb653a33ea1Unpublished

Unpublished Commit · Learn More

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

Description

agent: Slightly change structure of cmd_readkey.

* agent/command.c (cmd_readkey): Avoid a leave label in the middle of
the code.  Remove the special return.

This helps to get better debug output.

The set_error macro which is used by parse_keygrip merely sets the
error code into the Assuan context. It is thus no problem anymore to
call leave_cmd after having used set_error. This might havve been
diffferent in the past.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 24 2016, 12:55 PM
Parents
rG5e7dfd979d2d: dirmngr: Fix segfault in VERSIONCHECK.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGfdb653a33ea1: agent: Slightly change structure of cmd_readkey. (authored by Werner Koch <wk@gnupg.org>).Oct 24 2016, 12:59 PM