cryptsetup: fix OOM handling when parsing mount options

Conflicts:
	src/cryptsetup/cryptsetup.c
This commit is contained in:
Lennart Poettering
2013-10-02 19:36:28 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent de55428968
commit b76652a28e
+2 -2
View File
@@ -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;