summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhartmei <dhartmei@openbsd.org>2001-09-15 11:21:50 +0000
committerdhartmei <dhartmei@openbsd.org>2001-09-15 11:21:50 +0000
commit2bee5bd21fc856c546af586df7a664364eb7a04f (patch)
tree55a7aaac6fd45b276a96e76805280baa4ee62097
parentmerge with netbsd (no external differences... basically just makes diffs easier) (diff)
downloadwireguard-openbsd-2bee5bd21fc856c546af586df7a664364eb7a04f.tar.xz
wireguard-openbsd-2bee5bd21fc856c546af586df7a664364eb7a04f.zip
Parse bug, found by wilfried@
-rw-r--r--sbin/pfctl/parse.y6
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;
}