creds-util: fix NULL pointer dereference
Fixes CID#1497840.
This commit is contained in:
@@ -990,8 +990,9 @@ int decrypt_credential_and_warn(
|
||||
r = tpm2_unseal(tpm2_device,
|
||||
le64toh(t->pcr_mask),
|
||||
le16toh(t->pcr_bank),
|
||||
z ? z->data : NULL, z ? le32toh(z->size) : 0,
|
||||
le64toh(z->pcr_mask),
|
||||
z ? z->data : NULL,
|
||||
z ? le32toh(z->size) : 0,
|
||||
z ? le64toh(z->pcr_mask) : 0,
|
||||
signature_json,
|
||||
/* pin= */ NULL,
|
||||
le16toh(t->primary_alg),
|
||||
|
||||
Reference in New Issue
Block a user