diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-23 00:30:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-23 00:39:42 +0200 |
commit | 0e2f14014c65b4d8b30146e414579154cfa932da (patch) | |
tree | 92c53f410709bcd7d5ee654cdda60e14ff64ef7c | |
parent | affcf189153714f0de4d0986d18e2bc1b35c1b20 (diff) |
cryptsetup: fix an OOM check
-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 137b7876d6..c7f30f6a15 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup-generator.c @@ -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; } |