aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os/connection.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-10-02 09:16:13 +0200
committermarha <marha@users.sourceforge.net>2012-10-02 09:16:13 +0200
commit07be8c02a809f5bfacf5d195123a61f51708b9ca (patch)
tree8284d63c73bcecf6363c0f1718b26d94b9c8da21 /xorg-server/os/connection.c
parent7305d42f2ad0462ca3916a73df49cc6b70b41fe4 (diff)
downloadvcxsrv-07be8c02a809f5bfacf5d195123a61f51708b9ca.tar.gz
vcxsrv-07be8c02a809f5bfacf5d195123a61f51708b9ca.tar.bz2
vcxsrv-07be8c02a809f5bfacf5d195123a61f51708b9ca.zip
Solved problem of finding valid open socket in case ipv6 is not installed
and display number -1 is passed.
Diffstat (limited to 'xorg-server/os/connection.c')
-rw-r--r--xorg-server/os/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/os/connection.c b/xorg-server/os/connection.c
index f34cc3ea3..fa471dd6c 100644
--- a/xorg-server/os/connection.c
+++ b/xorg-server/os/connection.c
@@ -447,7 +447,7 @@ CreateWellKnownSockets(void)
else { /* -displayfd */
Bool found = 0;
for (i = 0; i < 65535 - X_TCP_PORT; i++) {
- if (TryCreateSocket(i, &partial) && !partial) {
+ if (TryCreateSocket(i, &partial) && ListenTransCount >= 1 && (PartialNetwork || !partial)) {
found = 1;
break;
}