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 <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-09-16 15:17:51 +02:00
parent af196342bf
commit c2e563421e
1 changed files with 1 additions and 1 deletions

View File

@ -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. */