mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
networkd: sd_bus_path_decode() returns 0, if the prefix doesn't match
This commit is contained in:
parent
fdb90ac6a6
commit
a7f6e7e847
@ -102,7 +102,7 @@ int link_object_find(sd_bus *bus, const char *path, const char *interface, void
|
||||
assert(found);
|
||||
|
||||
r = sd_bus_path_decode(path, "/org/freedesktop/network1/link", &identifier);
|
||||
if (r < 0)
|
||||
if (r <= 0)
|
||||
return 0;
|
||||
|
||||
r = parse_ifindex(identifier, &ifindex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user