On Wed, Sep 12, 2018 at 12:02:02AM +0200, Klemens Nanni wrote:
> OK?
OK bluhm@
> Index: pfctl_parser.c
> ===================================================================
> RCS file: /cvs/src/sbin/pfctl/pfctl_parser.c,v
> retrieving revision 1.336
> diff -u -p -r1.336 pfctl_parser.c
> --- pfctl_parser.c 11 Sep 2018 10:42:10 -0000 1.336
> +++ pfctl_parser.c 11 Sep 2018 22:01:41 -0000
> @@ -1321,7 +1321,6 @@ struct node_host *
> gen_dynnode(struct node_host *h, sa_family_t af)
> {
> struct node_host *n;
> - struct pf_addr *m;
>
> if (h->addr.type != PF_ADDR_DYNIFTL)
> return (NULL);
> @@ -1334,8 +1333,7 @@ gen_dynnode(struct node_host *h, sa_fami
> n->tail = NULL;
>
> /* fix up netmask */
> - m = &n->addr.v.a.mask;
> - if (af == AF_INET && unmask(m) > 32)
> + if (af == AF_INET && unmask(&n->addr.v.a.mask) > 32)
> set_ipmask(n, 32);
>
> return (n);