1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-11 21:48:50 +01:00

g10: When showing a user id's trust, pass the current signature.

* g10/mainproc.c (check_sig_and_print): Consistently pass SIG to
get_validity.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-08-29 14:05:16 +02:00
parent 8b3e691ffb
commit 8dda861ad8

View File

@ -1943,7 +1943,7 @@ check_sig_and_print (CTX c, kbnode_t node)
does not print a LF we need to compute the validity does not print a LF we need to compute the validity
before calling that function. */ before calling that function. */
if ((opt.verify_options & VERIFY_SHOW_UID_VALIDITY)) if ((opt.verify_options & VERIFY_SHOW_UID_VALIDITY))
valid = get_validity (c->ctrl, pk, un->pkt->pkt.user_id, NULL, 0); valid = get_validity (c->ctrl, pk, un->pkt->pkt.user_id, sig, 0);
else else
valid = 0; /* Not used. */ valid = 0; /* Not used. */