From 103fa8fa2c9264e6001a5e9379f8064763b1d28e Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Mon, 16 Apr 2018 15:25:46 +0200 Subject: [PATCH] Remove redundant check for key file. Semantically same check is in tools_get_key routine. --- src/cryptsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;