]> err.no Git - systemd/commitdiff
cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2011 17:22:45 +0000 (19:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2011 17:22:45 +0000 (19:22 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=36264

src/cryptsetup.c

index 4ef9606d39fabc415e003ab0736ab426a9f7618a..d7c458ad8c823b50a7705c8a14b8c8eb3c3badc0 100644 (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;