summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-01-09 18:00:58 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-01-09 18:00:58 +0000
commit553bca74b21851f1d5077c975c584a94eeaf0109 (patch)
tree67f602d480ad4d226b9304a5668805b3058f7152
parent6650083e2be67db32c2e72ab4c815a9f1111a5ba (diff)
Port must be >0 and <=65535. Idea while have fun with ssh.
dhartmei@ ok
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index bde262e3d72..df59069383a 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.52 2002/01/09 12:39:42 mpech Exp $ */
+/* $OpenBSD: parse.y,v 1.53 2002/01/09 18:00:57 mpech Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -575,7 +575,7 @@ port_item : port {
;
port : NUMBER {
- if (0 > $1 || $1 > 65535) {
+ if ($1 <= 0 || $1 > 65535) {
yyerror("illegal port value %d", $1);
YYERROR;
}