mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 00:21:01 +00:00
networkd: sd_bus_path_decode() returns 0, if the prefix doesn't match
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user