From: Daan De Meyer Date: Sun, 20 Oct 2024 14:31:23 +0000 (+0200) Subject: cryptenroll: Remove faulty assert() X-Git-Tag: v257-rc1~173^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88d9ca6d8a6cfe733bcded4ef9490d1f0937acbc;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/cryptenroll/cryptenroll-tpm2.c b/src/cryptenroll/cryptenroll-tpm2.c index d58194fb851..ca163ef3c2f 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; }