mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00:00
cryptsetup: fix an OOM check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user