diff --git a/src/cryptsetup.c b/src/cryptsetup.c index ef3d3baa..5818e885 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -1354,7 +1354,7 @@ static int action_luksAddKey(void) r = tools_get_key(_("Enter new passphrase for key slot: "), &password_new, &password_new_size, opt_new_keyfile_offset, opt_new_keyfile_size, opt_new_key_file, - opt_timeout, _verify_passphrase(1), opt_new_key_file ? 0 : 1, cd); + opt_timeout, _verify_passphrase(1), 1, cd); if (r < 0) goto out;