summaryrefslogtreecommitdiff
path: root/c_src/cmd_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/cmd_key.c')
-rw-r--r--c_src/cmd_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/cmd_key.c b/c_src/cmd_key.c
index 552aa867..adb0ac8d 100644
--- a/c_src/cmd_key.c
+++ b/c_src/cmd_key.c
@@ -66,7 +66,7 @@ int cmd_unlock(int argc, char *argv[])
if (ret)
die("Error opening %s: %s", dev, bch2_err_str(ret));
- if (!bch2_sb_is_encrypted_and_locked(sb.sb))
+ if (!bch2_sb_is_encrypted(sb.sb))
die("%s is not encrypted", dev);
if (check)