summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2014-10-21 15:03:55 +0100
committerKeith Packard <keithp@keithp.com>2014-10-27 15:44:26 -0700
commitea5b2b0a2e2143ad1414fcbdc081b5d584588346 (patch)
treec4cc093b2413828c4a6048a512a6efa1627fdd97 /os
parent3a123fbdda56b24dc01a2308137144dc960e0d61 (diff)
os: -displayfd should check ports up to 65535
-displayfd should check ports up to 65535 Noticed during https://cygwin.com/ml/cygwin-xfree/2014-07/msg00024.html Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os')
-rw-r--r--os/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/connection.c b/os/connection.c
index f915e1295..d53bd3461 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -421,7 +421,7 @@ CreateWellKnownSockets(void)
}
else { /* -displayfd and no explicit display number */
Bool found = 0;
- for (i = 0; i < 65535 - X_TCP_PORT; i++) {
+ for (i = 0; i < 65536 - X_TCP_PORT; i++) {
if (TryCreateSocket(i, &partial) && !partial) {
found = 1;
break;