summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2018-11-08 21:53:09 +0000
committerKristof Provost <kp@FreeBSD.org>2018-11-08 21:53:09 +0000
commit0f9e47a9c45ce1d454f23755edc7ec26b7bc8a8c (patch)
tree3c736f7f5e83043210eb048f4802f7f788897dc9 /sbin/pfctl
parent8f04c0c06bf4e626e6ca84f6b0a3388c8159572e (diff)
downloadsrc-test-0f9e47a9c45ce1d454f23755edc7ec26b7bc8a8c.tar.gz
src-test-0f9e47a9c45ce1d454f23755edc7ec26b7bc8a8c.zip
pfctl: Populate ifname in ifa_lookup()
pfctl_adjust_skip_ifaces() relies on this name. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=340264
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 9fbfe7cbdb7b3..80195b1f5afb2 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -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;