]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homed: don't forget to look at all enrolled tokens
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Oct 2021 14:59:35 +0000 (16:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Oct 2021 21:50:04 +0000 (23:50 +0200)
We accidentally increased the token index twice whenever we found our
token. Fix that.

src/home/homework-luks.c

index b71621871665a09fc0cfd0bc3960cc0d945b2b98..c9c2476ed6e4741609ce281d35566d2a0ac50160 100644 (file)
@@ -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)