cryptsetup: fix an OOM check

This commit is contained in:
Lennart Poettering
2014-10-23 00:39:42 +02:00
parent affcf18915
commit 0e2f14014c
+1 -1
View File
@@ -387,7 +387,7 @@ int main(int argc, char *argv[]) {
if (k == 2 && streq(proc_uuid, device + 5)) {
free(options);
options = strdup(p);
if (!proc_options) {
if (!options) {
log_oom();
goto cleanup;
}