diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-09-15 11:21:51 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-09-15 11:21:51 +0000 |
commit | c787c30d8e5b871bbbd20398b76b9f68e9e45d3c (patch) | |
tree | abbded377e014da9fe6c6959d11cb7a3442ea973 /sbin | |
parent | effa1177468cbd420c4309ee3b66d517acf2e6d9 (diff) |
Parse bug, found by wilfried@
Diffstat (limited to 'sbin')
-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 3cd689ce45b..b0df340e8fb 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.32 2001/09/15 03:54:40 frantzen Exp $ */ +/* $OpenBSD: parse.y,v 1.33 2001/09/15 11:21:50 dhartmei Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -546,8 +546,8 @@ icmp_item : icmptype { yyerror("illegal icmp code %d", $3); YYERROR; } - $$->code = $1; - $$->type = $3 + 1; + $$->type = $1; + $$->code = $3 + 1; $$->proto = IPPROTO_ICMP; $$->next = NULL; } |