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

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) {