forked from pool/systemd
ba9b55aa79
1 OBS-URL: https://build.opensuse.org/request/show/262952 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=209
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 0e2f14014c65b4d8b30146e414579154cfa932da Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Thu, 23 Oct 2014 00:30:04 +0200
|
|
Subject: [PATCH] cryptsetup: fix an OOM check
|
|
|
|
---
|
|
src/cryptsetup/cryptsetup-generator.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git src/cryptsetup/cryptsetup-generator.c src/cryptsetup/cryptsetup-generator.c
|
|
index 137b787..c7f30f6 100644
|
|
--- src/cryptsetup/cryptsetup-generator.c
|
|
+++ 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;
|
|
}
|
|
--
|
|
1.7.9.2
|
|
|