diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-10 12:10:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-10 12:10:44 +0200 |
commit | 89921f6ed085d77225204e160ce2cee99ed0c6fa (patch) | |
tree | 9d337cba8e3ea12949c5c3c8b40a1827598c00a6 /src | |
parent | 0018e4e47947b1a65855e8404480131e9d0c93ca (diff) | |
parent | c802a7306bdc3e82378a87acd9402bbabe9f6b28 (diff) |
Merge pull request #1234 from medhefgo/master
cryptsetup-generator: Properly check return code
Diffstat (limited to 'src')
-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) { |