summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-10-30 11:52:49 +0000
committerhenning <henning@openbsd.org>2002-10-30 11:52:49 +0000
commit373ae8a06e6427e3ba48dbb5fc5619cc5ab59e72 (patch)
treeb393c6902f3d2462b0ee3849a7b1bd1c8e74c563
parento for gre version 1, correctly check if kp (key present) is unset. (diff)
downloadwireguard-openbsd-373ae8a06e6427e3ba48dbb5fc5619cc5ab59e72.tar.xz
wireguard-openbsd-373ae8a06e6427e3ba48dbb5fc5619cc5ab59e72.zip
fix interface expansion. since the reversed list expansion code was
committed this was broken, only the first IP address was returned. pointed out by danh@, who sent an excellent bug report. ok dhartmei@
-rw-r--r--sbin/pfctl/parse.y7
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index cc4a5e767e9..27302d037fe 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.176 2002/10/29 15:23:38 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.177 2002/10/30 11:52:49 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -2931,11 +2931,8 @@ host(char *s)
/* interface with this name exists */
if ((h = ifa_lookup(s, PFCTL_IFLOOKUP_HOST)) == NULL)
return (NULL);
- else {
- h->next = NULL;
- h->tail = h;
+ else
return (h);
- }
}
if (inet_aton(s, &ina) == 1) {