mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-15 18:25:53 +00:00
cryptsetup: fix OOM handling when parsing mount options
Conflicts: src/cryptsetup/cryptsetup.c
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
de55428968
commit
b76652a28e
@@ -70,7 +70,7 @@ static int parse_one_option(const char *option) {
|
||||
|
||||
t = strdup(option+7);
|
||||
if (!t)
|
||||
return -ENOMEM;
|
||||
return log_oom();
|
||||
|
||||
free(opt_cipher);
|
||||
opt_cipher = t;
|
||||
@@ -101,7 +101,7 @@ static int parse_one_option(const char *option) {
|
||||
|
||||
t = strdup(option+5);
|
||||
if (!t)
|
||||
return -ENOMEM;
|
||||
return log_oom();
|
||||
|
||||
free(opt_hash);
|
||||
opt_hash = t;
|
||||
|
||||
Reference in New Issue
Block a user