wait-online: ignore one more error in callback function

This commit is contained in:
Yu Watanabe
2022-11-01 11:35:27 +09:00
parent 40851a231d
commit e53f43fee8
+5 -3
View File
@@ -212,11 +212,13 @@ static int manager_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *
case RTM_NEWLINK:
if (!l) {
log_debug("Found link %i", ifindex);
log_debug("Found link %s(%i)", ifname, ifindex);
r = link_new(m, &l, ifindex, ifname);
if (r < 0)
return log_error_errno(r, "Failed to create link object: %m");
if (r < 0) {
log_warning_errno(r, "Failed to create link object for %s(%i), ignoring: %m", ifname, ifindex);
return 0;
}
}
r = link_update_rtnl(l, mm);