cryptsetup: copy value, not key for (rd.)luks.key

This commit is contained in:
Matthew Monaco
2014-04-19 23:38:14 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent d38f6e34a6
commit 66aaf85e17
+1 -1
View File
@@ -287,7 +287,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
} else if (STR_IN_SET(key, "luks.key", "rd.luks.key") && value) {
free(arg_keyfile);
arg_keyfile = strdup(key);
arg_keyfile = strdup(value);
if (!arg_keyfile)
return log_oom();