From d71059072aebae5b15a41974142f5df2b8ce55f9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 8 Oct 2021 16:59:35 +0200 Subject: [PATCH] homed: don't forget to look at all enrolled tokens We accidentally increased the token index twice whenever we found our token. Fix that. --- src/home/homework-luks.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c index b7162187166..c9c2476ed6e 100644 --- a/src/home/homework-luks.c +++ b/src/home/homework-luks.c @@ -946,7 +946,6 @@ int home_store_header_identity_luks( /* Now, let's free the text so that for all further matching tokens we all crypt_json_token_set() * with a NULL text in order to invalidate the tokens. */ text = mfree(text); - token++; } if (text)