]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfctl: Fix ifa_grouplookup()
authorkp <kp@FreeBSD.org>
Sun, 10 Feb 2019 21:22:55 +0000 (21:22 +0000)
committerkp <kp@FreeBSD.org>
Sun, 10 Feb 2019 21:22:55 +0000 (21:22 +0000)
commitaf0e61e653e6ca26222c5d5d132bcf74fdfab9b4
tree79e15ac366c33a00a0b1761c2a0329c7ade63d74
parent45f6749b44462ec902b86cf9bdbc469765e80681
pfctl: Fix ifa_grouplookup()

Setting the length of the request got lost in r343287, which means SIOCGIFGMEMB
gives us the required length, but does not copy the names of the group members.
As a result we don't get a correct list of group members, and 'set skip on
<ifgroup>' broke.

This produced all sorts of very unexpected results, because we would end up
applying 'set skip' to unexpected interfaces.

X-MFC-with: r343287
sbin/pfctl/pfctl_parser.c