From 88d9ca6d8a6cfe733bcded4ef9490d1f0937acbc Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 20 Oct 2024 16:31:23 +0200 Subject: 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. --- src/cryptenroll/cryptenroll-tpm2.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/cryptenroll/cryptenroll-tpm2.c') 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; } -- cgit v1.2.3