diff options
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index ca323aeda81..3f2ae8dbaee 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.102 2002/06/18 20:07:58 frantzen Exp $ */ +/* $OpenBSD: parse.y,v 1.103 2002/06/18 21:05:17 frantzen Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -557,7 +557,12 @@ host_list : xhost { $$ = $1; } } ; -xhost : '!' host { $$ = $2; $$->not = 1; } +xhost : '!' host { + struct node_host *h; + for (h = $2; h; h = h->next) + h->not = 1; + $$ = $2; + } | host { $$ = $1; } | NOROUTE { $$ = calloc(1, sizeof(struct node_host)); |