summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2018-09-13 06:03:27 +0000
committerkn <kn@openbsd.org>2018-09-13 06:03:27 +0000
commit9e1cf8ac885836bd39346dc283a124eac2e82b8e (patch)
tree7578db252831d12467720dd06941c2c6dc048d3e
parentuse only openssl-1.1.x API here too (diff)
downloadwireguard-openbsd-9e1cf8ac885836bd39346dc283a124eac2e82b8e.tar.xz
wireguard-openbsd-9e1cf8ac885836bd39346dc283a124eac2e82b8e.zip
Avoid unneeded variable in gen_dynnode()
OK bluhm
-rw-r--r--sbin/pfctl/pfctl_parser.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index ddd1b9ca60b..e9a2699b66d 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.336 2018/09/11 10:42:10 kn Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.337 2018/09/13 06:03:27 kn Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -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_family_t af)
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);