mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
gpg: Do not rely on a certain evaluation order.
* g10/keyedit.c (print_and_check_one_sig): Call check_key_signature before derefing IS_SELFSIG. -- Fixes-commit: 5fbd80579aea0f75ca1d2700515c5b8747a75c7d Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
834b84c0ee
commit
60b34f96f4
@ -310,12 +310,16 @@ print_one_sig (int rc, KBNODE keyblock, KBNODE node,
|
|||||||
return (sigrc == '!');
|
return (sigrc == '!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
print_and_check_one_sig (KBNODE keyblock, KBNODE node,
|
print_and_check_one_sig (KBNODE keyblock, KBNODE node,
|
||||||
int *inv_sigs, int *no_key, int *oth_err,
|
int *inv_sigs, int *no_key, int *oth_err,
|
||||||
int *is_selfsig, int print_without_key, int extended)
|
int *is_selfsig, int print_without_key, int extended)
|
||||||
{
|
{
|
||||||
return print_one_sig (check_key_signature (keyblock, node, is_selfsig),
|
int rc;
|
||||||
|
|
||||||
|
rc = check_key_signature (keyblock, node, is_selfsig);
|
||||||
|
return print_one_sig (rc,
|
||||||
keyblock, node, inv_sigs, no_key, oth_err,
|
keyblock, node, inv_sigs, no_key, oth_err,
|
||||||
*is_selfsig, print_without_key, extended);
|
*is_selfsig, print_without_key, extended);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user