diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-10-20 16:31:23 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-10-21 17:24:14 +0200 |
commit | 88d9ca6d8a6cfe733bcded4ef9490d1f0937acbc (patch) | |
tree | de62c881e1b234805000ce8e26df861eea190c59 /src/cryptenroll/cryptenroll-tpm2.c | |
parent | pcrlock: Take VirtualSize > SizeOfRawData into account (diff) | |
download | systemd-88d9ca6d8a6cfe733bcded4ef9490d1f0937acbc.tar.xz systemd-88d9ca6d8a6cfe733bcded4ef9490d1f0937acbc.zip |
cryptenroll: Remove faulty assert()
We can break out of the preceeding for loop in certain scenarios
which would trigger the assert so let's drop it.
Diffstat (limited to 'src/cryptenroll/cryptenroll-tpm2.c')
-rw-r--r-- | src/cryptenroll/cryptenroll-tpm2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cryptenroll/cryptenroll-tpm2.c b/src/cryptenroll/cryptenroll-tpm2.c index d58194fb85..ca163ef3c2 100644 --- a/src/cryptenroll/cryptenroll-tpm2.c +++ b/src/cryptenroll/cryptenroll-tpm2.c @@ -78,8 +78,6 @@ static int search_policy_hash( j++; } - assert(j == n_policy_hash); - if (match) /* Found entry with the exact same set of hashes */ return keyslot; } |