cryptsetup: fix OOM handling when parsing mount options

Conflicts:
	src/cryptsetup/cryptsetup.c
This commit is contained in:
Lennart Poettering
2013-10-06 10:48:20 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent e543e472c3
commit 915491b8cd
+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;