diff options
author | Peter Stromberg <wilfried@cvs.openbsd.org> | 2002-11-19 11:25:46 +0000 |
---|---|---|
committer | Peter Stromberg <wilfried@cvs.openbsd.org> | 2002-11-19 11:25:46 +0000 |
commit | 69d23a0b808a7905bac4db3c2975ac1022a6d0b4 (patch) | |
tree | 1797eca336f9996c6d540ed23655a97f4f871a49 | |
parent | 80ef01c4fd9f4a9191592d17b9b20328a23cea85 (diff) |
icmp-type was off by one, ok henning@
-rw-r--r-- | sbin/pfctl/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 281414da5bf..de57a541d1b 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.192 2002/11/18 23:38:48 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.193 2002/11/19 11:25:45 wilfried Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -1325,7 +1325,7 @@ icmp_item : icmptype { YYERROR; } } else { - if ((p = geticmpcodebyname($1, $3, + if ((p = geticmpcodebyname($1-1, $3, AF_INET)) == NULL) { yyerror("unknown icmp-code %s", $3); YYERROR; @@ -1363,7 +1363,7 @@ icmp6_item : icmp6type { YYERROR; } } else { - if ((p = geticmpcodebyname($1, $3, + if ((p = geticmpcodebyname($1-1, $3, AF_INET6)) == NULL) { yyerror("unknown icmp6-code %s", $3); YYERROR; |