mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
cryptsetup: fix inverted comparison in pass_volume_key
This commit is contained in:
parent
e4f44e734c
commit
8db9d8c2a4
@ -468,7 +468,8 @@ int main(int argc, char *argv[]) {
|
||||
opt_keyfile_size,
|
||||
¶ms);
|
||||
|
||||
pass_volume_key = !!hash;
|
||||
/* hash == NULL implies the user passed "plain" */
|
||||
pass_volume_key = (hash == NULL);
|
||||
}
|
||||
|
||||
if (k < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user