cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()

https://bugs.freedesktop.org/show_bug.cgi?id=36264
This commit is contained in:
Lennart Poettering
2011-04-20 19:22:45 +02:00
parent b0a3f2bc09
commit 9402841ef1

View File

@@ -447,7 +447,7 @@ int main(int argc, char *argv[]) {
argv[3]);
if (key_file)
k = crypt_activate_by_keyfile(cd, argv[2], CRYPT_ANY_SLOT, key_file, opt_key_size, flags);
k = crypt_activate_by_keyfile(cd, argv[2], CRYPT_ANY_SLOT, key_file, 0, flags);
else {
char **p;