diff options
-rw-r--r-- | src/network/networkd-link-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c index 8a32aea905..4d6ac747fd 100644 --- a/src/network/networkd-link-bus.c +++ b/src/network/networkd-link-bus.c @@ -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); |