diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-18 10:16:56 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-18 10:16:56 +0000 |
commit | c3d44b033f6d84a5b5d4b436d9601d6c43490c81 (patch) | |
tree | 93ce53915f96814dcae7da2966461b7b0db2d2d0 /sbin | |
parent | 545036bceed180b4d0beea12160470c1640e7cd8 (diff) |
proto list expansion is not supported in binat-anchor yet, print an error
when attempted.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/parse.y | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 1db039af808..787e23a5d2b 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.263 2002/12/18 10:02:40 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.264 2002/12/18 10:16:55 dhartmei Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -591,6 +591,11 @@ anchorrule : ANCHOR string dir interface af proto fromto { r.action = PF_BINAT; r.af = $4; if ($5 != NULL) { + if ($5->next != NULL) { + yyerror("proto list expansion" + " not supported in binat-anchor"); + YYERROR; + } r.proto = $5->proto; free($5); } |