summaryrefslogtreecommitdiff
path: root/src/cryptsetup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-20 19:22:45 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-20 19:22:45 +0200
commit9402841ef197e485061ab328edcaa0e6d83051bd (patch)
treeebe7143c6e60a729f3eeb85802f6313e45132171 /src/cryptsetup.c
parentb0a3f2bc097999f63d3205bb175ad7a6695363a0 (diff)
cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()
https://bugs.freedesktop.org/show_bug.cgi?id=36264
Diffstat (limited to 'src/cryptsetup.c')
-rw-r--r--src/cryptsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup.c b/src/cryptsetup.c
index 4ef9606d39..d7c458ad8c 100644
--- a/src/cryptsetup.c
+++ b/src/cryptsetup.c
@@ -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;