Revert "cryptenroll: drop unmet condition"

This reverts commit cefa4a02ab.

Because the first 'break' is inside a nested for loop, this second 'break' is
needed to exit the outer for loop.

Fixes: #28451
This commit is contained in:
Dan Streetman 2023-07-21 10:45:16 -04:00 committed by Luca Boccassi
parent 686b983040
commit adb7fe82c7

View file

@ -78,6 +78,8 @@ int load_volume_key_password(
if (r >= 0)
break;
}
if (r >= 0)
break;
log_error_errno(r, "Password not correct, please try again: %m");
ask_password_flags &= ~ASK_PASSWORD_ACCEPT_CACHED;