sd-netlink: allow to call rtnl_get_link_info() without iftype and flags

This commit is contained in:
Yu Watanabe
2024-03-05 16:22:09 +09:00
committed by Luca Boccassi
parent 70aece8193
commit 21fdecdc13

View File

@@ -509,7 +509,7 @@ int rtnl_get_link_info(
assert(rtnl);
assert(ifindex > 0);
if (!ret_iftype && !ret_flags)
if (!ret_iftype && !ret_flags && !ret_kind && !ret_hw_addr && !ret_permanent_hw_addr)
return 0;
if (!*rtnl) {