mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 23:51:28 +03:00
core: fix OOM checks in dbus-unit
CID#1299014
This commit is contained in:
parent
b669934fae
commit
e861098bf2
@ -716,7 +716,7 @@ static int send_new_signal(sd_bus *bus, void *userdata) {
|
|||||||
assert(u);
|
assert(u);
|
||||||
|
|
||||||
p = unit_dbus_path(u);
|
p = unit_dbus_path(u);
|
||||||
if (!u)
|
if (!p)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
r = sd_bus_message_new_signal(
|
r = sd_bus_message_new_signal(
|
||||||
@ -793,7 +793,7 @@ static int send_removed_signal(sd_bus *bus, void *userdata) {
|
|||||||
assert(u);
|
assert(u);
|
||||||
|
|
||||||
p = unit_dbus_path(u);
|
p = unit_dbus_path(u);
|
||||||
if (!u)
|
if (!p)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
r = sd_bus_message_new_signal(
|
r = sd_bus_message_new_signal(
|
||||||
|
Loading…
Reference in New Issue
Block a user