mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
bus: properly parse NameOwnerChanged messages when caller explicitly wants to match against names coming/going
This commit is contained in:
parent
b408e2a8be
commit
33cb6e7934
@ -741,7 +741,7 @@ static int add_name_change_match(sd_bus *bus,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (old_owner) {
|
if (!isempty(old_owner)) {
|
||||||
r = bus_kernel_parse_unique_name(old_owner, &old_owner_id);
|
r = bus_kernel_parse_unique_name(old_owner, &old_owner_id);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return 0;
|
return 0;
|
||||||
@ -751,7 +751,7 @@ static int add_name_change_match(sd_bus *bus,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_owner) {
|
if (!isempty(new_owner)) {
|
||||||
r = bus_kernel_parse_unique_name(new_owner, &new_owner_id);
|
r = bus_kernel_parse_unique_name(new_owner, &new_owner_id);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user