- get_key("Enter LUKS passphrase to be deleted: ",&password,&passwordLen, 0, options->new_key_file, options->passphrase_fd, options->timeout, options->flags);
- if(!password) {
- r = -EINVAL; goto out;
- }
- keyIndex = LUKS_open_any_key(device, password, passwordLen, &hdr, &mk, backend);
- if(keyIndex < 0) {
- options->icb->log(CRYPT_LOG_ERROR,"No remaining key available with this passphrase.\n");
- r = -EPERM; goto out;
- } else
- logger(options, CRYPT_LOG_NORMAL,"key slot %d selected for deletion.\n", keyIndex);
- safe_free(password);
+ get_key("Enter LUKS passphrase to be deleted: ",&password,&passwordLen, 0, options->new_key_file,
+ options->passphrase_fd, options->timeout, options->flags);
+ if(!password) {
+ r = -EINVAL; goto out;
+ }
+
+ keyIndex = LUKS_open_any_key(device, password, passwordLen, &hdr, &mk, backend);
+ if(keyIndex < 0) {
+ options->icb->log(CRYPT_LOG_ERROR,"No remaining key available with this passphrase.\n");
+ r = -EPERM; goto out;
+ } else
+ logger(options, CRYPT_LOG_NORMAL,"key slot %d selected for deletion.\n", keyIndex);
+
+ safe_free(password);
+ password = NULL;