diff options
author | Jan Janssen <medhefgo@web.de> | 2015-09-10 10:23:49 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2015-09-10 10:23:49 +0200 |
commit | c802a7306bdc3e82378a87acd9402bbabe9f6b28 (patch) | |
tree | 9d337cba8e3ea12949c5c3c8b40a1827598c00a6 | |
parent | 0018e4e47947b1a65855e8404480131e9d0c93ca (diff) |
cryptsetup-generator: Properly check return code
-rw-r--r-- | src/cryptsetup/cryptsetup-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index 6fad8ad80c..ab91afec4d 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup-generator.c @@ -330,7 +330,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) { free(d->keyfile); d->keyfile = uuid_value; uuid_value = NULL; - } else if (free_and_strdup(&arg_default_keyfile, value)) + } else if (free_and_strdup(&arg_default_keyfile, value) < 0) return log_oom(); } else if (STR_IN_SET(key, "luks.name", "rd.luks.name") && value) { |