diff options
author | 2002-01-09 18:00:57 +0000 | |
---|---|---|
committer | 2002-01-09 18:00:57 +0000 | |
commit | 89a184889819df35ec34f2f966c9d046914437c3 (patch) | |
tree | 34f1295904d15aaed757863824d2b075d60393d1 | |
parent | make sure mixer was opened for write for AUDIO_MIXER_WRITE (diff) | |
download | wireguard-openbsd-89a184889819df35ec34f2f966c9d046914437c3.tar.xz wireguard-openbsd-89a184889819df35ec34f2f966c9d046914437c3.zip |
Port must be >0 and <=65535. Idea while have fun with ssh.
dhartmei@ ok
-rw-r--r-- | sbin/pfctl/parse.y | 4 |
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; } |