summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll/cryptenroll-tpm2.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-20 16:31:23 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-21 17:24:14 +0200
commit88d9ca6d8a6cfe733bcded4ef9490d1f0937acbc (patch)
treede62c881e1b234805000ce8e26df861eea190c59 /src/cryptenroll/cryptenroll-tpm2.c
parentpcrlock: Take VirtualSize > SizeOfRawData into account (diff)
downloadsystemd-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.c2
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;
}