pfctl: Populate ifname in ifa_lookup()

pfctl_adjust_skip_ifaces() relies on this name.

MFC after:	2 weeks
This commit is contained in:
Kristof Provost 2018-11-08 21:53:09 +00:00
parent 8f04c0c06b
commit 0f9e47a9c4

View File

@ -1403,6 +1403,7 @@ ifa_lookup(const char *ifa_name, int flags)
set_ipmask(n, 128);
}
n->ifindex = p->ifindex;
n->ifname = strdup(p->ifname);
n->next = NULL;
n->tail = n;