ifconfig: fix ifconfig crash when compiled w/WITHOUT_NETLINK.
Properly update the recently-introduced `ctx->ifname` when iterating over interfaces. Reported by: Gary Jennejohn <garyj@gmx.de> MFC after: 2 weeks
This commit is contained in:
@@ -822,6 +822,7 @@ list_interfaces_ioctl(if_ctx *ctx)
|
||||
continue;
|
||||
if (!group_member(ifa->ifa_name, args->matchgroup, args->nogroup))
|
||||
continue;
|
||||
ctx->ifname = cp;
|
||||
/*
|
||||
* Are we just listing the interfaces?
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user