mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
This commit is contained in:
committed by
Keith Packard
parent
3a123fbdda
commit
ea5b2b0a2e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user