1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00

gpg: Use a more appropriate error code.

* g10/gpg.c (check_user_ids): Return a more appropriate error code if
a user id is ambiguous.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2015-11-17 13:42:43 +01:00
parent a9e0905342
commit eae982ed6d

View File

@ -2209,7 +2209,7 @@ check_user_ids (strlist_t *sp,
log_info (_("(check argument of option '%s')\n"), option);
if (! rc)
rc = GPG_ERR_CONFLICT;
rc = GPG_ERR_AMBIGUOUS_NAME;
err = keydb_get_keyblock (hd, &kb);
if (err)