diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index e468a38b2c8a..9a931e102abf 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -4310,8 +4310,11 @@ route_host : STRING { $$->tail = $$; } | '(' STRING host ')' { + struct node_host *n; + $$ = $3; - $$->ifname = $2; + for (n = $3; n != NULL; n = n->next) + n->ifname = $2; } ;