dbus: add missing OOM check

This commit is contained in:
Lennart Poettering
2018-10-17 21:13:02 +02:00
parent 6e9c4f450e
commit 4ad25546e7
+3
View File
@@ -364,6 +364,9 @@ static int bus_socket_set_transient_property(
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid socket path: %s", t);
p->path = strdup(a);
if (!p->path)
return log_oom();
path_simplify(p->path, false);
} else if (streq(t, "Netlink")) {