summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-09-18 20:27:59 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-09-18 20:27:59 +0000
commit8ef35e9b63553bfaa8f26c46fb48df86d8a40af1 (patch)
tree2eb25ef88e4714fec581eb7b9ba1a64c3f41a3e0 /sbin
parente10155eee9ef5a6449fce33c14eb0cb957a036ae (diff)
Not all address types have a mask.
ok henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 00476fa13da..7c051ac4bd4 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.174 2003/08/22 21:52:11 itojun Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.175 2003/09/18 20:27:58 cedric Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -852,6 +852,8 @@ check_netmask(struct node_host *h, sa_family_t af)
struct pf_addr *m;
for (n = h; n != NULL; n = n->next) {
+ if (h->addr.type == PF_ADDR_TABLE)
+ continue;
m = &h->addr.v.a.mask;
/* fix up netmask for dynaddr */
if (af == AF_INET && h->addr.type == PF_ADDR_DYNIFTL &&