summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2017-08-28 06:00:06 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2017-08-28 06:00:06 +0000
commit6e125a719ea91234184421b02fcd6a2cd1f80e16 (patch)
tree6cc16dbad46ebb4565cfbaaead8b2786183d57b9 /usr.sbin/ldapd
parent4a9fce5e0080c827e3cc28451398b6af38926c6c (diff)
65535 is a valid port to listen on.
Off-by-one pointed out by and diff from Kris Katterjohn katterjohn AT gmail, thanks! chris@ pointed out that more than httpd(8) is effected. OK gilles@
Diffstat (limited to 'usr.sbin/ldapd')
-rw-r--r--usr.sbin/ldapd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/parse.y b/usr.sbin/ldapd/parse.y
index 0ef43f484bb..a945dc32b43 100644
--- a/usr.sbin/ldapd/parse.y
+++ b/usr.sbin/ldapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.24 2017/04/06 12:22:32 gsoares Exp $ */
+/* $OpenBSD: parse.y,v 1.25 2017/08/28 06:00:05 florian Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
@@ -161,7 +161,7 @@ port : PORT STRING {
free($2);
}
| PORT NUMBER {
- if ($2 <= 0 || $2 >= (int)USHRT_MAX) {
+ if ($2 <= 0 || $2 > (int)USHRT_MAX) {
yyerror("invalid port: %lld", $2);
YYERROR;
}