From c2e563421e4fd4f0910642aa7b171bcf0b374b01 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Fri, 16 Sep 2016 15:17:51 +0200 Subject: g10: Load the key block if the supplied user id list is NULL. * g10/tofu.c (tofu_register_encryption): Load the key block if USER_ID_LIST is NULL. -- Signed-off-by: Neal H. Walfield --- g10/tofu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/tofu.c b/g10/tofu.c index 7f07483d8..9a60223b6 100644 --- a/g10/tofu.c +++ b/g10/tofu.c @@ -3023,7 +3023,7 @@ tofu_register_encryption (ctrl_t ctrl, if (/* We need the key block to find the primary key. */ keyid_cmp (pk_keyid (pk), pk_main_keyid (pk)) != 0 /* We need the key block to find all user ids. */ - || user_id_list) + || ! user_id_list) kb = get_pubkeyblock (pk->keyid); /* Make sure PK is a primary key. */ -- cgit v1.2.3