summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-10-30 11:52:50 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-10-30 11:52:50 +0000
commit23bb3da15bf2ef16f2c50a0c93bcab3a43734fe1 (patch)
tree37a6f55d455462c84a837e5332a4da5980dfdccd /sbin
parent0aaaa433e12056cc00f6732b099f006f9d09e293 (diff)
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@
Diffstat (limited to 'sbin')
-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) {