cryptsetup: fix inverted comparison in pass_volume_key

This commit is contained in:
Dave Reisner 2012-11-06 10:17:18 -05:00
parent e4f44e734c
commit 8db9d8c2a4
1 changed files with 2 additions and 1 deletions

View File

@ -468,7 +468,8 @@ int main(int argc, char *argv[]) {
opt_keyfile_size,
&params);
pass_volume_key = !!hash;
/* hash == NULL implies the user passed "plain" */
pass_volume_key = (hash == NULL);
}
if (k < 0) {