From: Lennart Poettering Date: Fri, 8 Oct 2021 14:59:35 +0000 (+0200) Subject: homed: don't forget to look at all enrolled tokens X-Git-Tag: v250-rc1~543^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d71059072aebae5b15a41974142f5df2b8ce55f9;p=thirdparty%2Fsystemd.git homed: don't forget to look at all enrolled tokens We accidentally increased the token index twice whenever we found our token. Fix that. --- 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)