gpg: Fix error checking and improve error reporting.
authorNeal H. Walfield <neal@g10code.com>
Mon, 16 Nov 2015 09:34:01 +0000 (10:34 +0100)
committerNeal H. Walfield <neal@g10code.com>
Mon, 16 Nov 2015 09:34:01 +0000 (10:34 +0100)
commit8e2bea22b0927f4f95a248cc7517f407a705d8a8
treecd348eabb2ca97ff174bdd98c2cf681e79e020d9
parent3689c2105aab6a4304e9464c5b20207d69b9a133
gpg: Fix error checking and improve error reporting.

* g10/gpg.c (check_user_ids): Differentiate between a second result
and an error.  If the key specification is ambiguous or an error
occurs, set RC appropriately.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
Reported-by: Werner Koch <wk@gnupg.org>
Suggested-by: NIIBE Yutaka <gniibe@fsij.org>
g10/gpg.c