aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-14 16:34:29 +0000
committermarha <marha@users.sourceforge.net>2011-02-14 16:34:29 +0000
commited5dd0a1f9eea43219b4c678ec062f614413eea2 (patch)
treec8bf51059a44cebf7ed1fdb3a924af23648998e7 /xorg-server/os
parentbfd1e09d9d6cdedf67074aa14dd927655ee78753 (diff)
downloadvcxsrv-ed5dd0a1f9eea43219b4c678ec062f614413eea2.tar.gz
vcxsrv-ed5dd0a1f9eea43219b4c678ec062f614413eea2.tar.bz2
vcxsrv-ed5dd0a1f9eea43219b4c678ec062f614413eea2.zip
When XDMCP -from is specified, only register the requested address
Diffstat (limited to 'xorg-server/os')
-rw-r--r--xorg-server/os/xdmcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/os/xdmcp.c b/xorg-server/os/xdmcp.c
index 83e391319..582a0bd97 100644
--- a/xorg-server/os/xdmcp.c
+++ b/xorg-server/os/xdmcp.c
@@ -491,7 +491,7 @@ XdmcpRegisterConnection (
}
}
#endif
- if (fromAddr && memcmp(regAddr, fromAddr, regAddrlen) != 0) {
+ if (!fromAddr || memcmp(regAddr, fromAddr, regAddrlen) != 0) {
return;
}
}