Commit 82e893ef authored by Ulrich Sibiller's avatar Ulrich Sibiller

nxcomp: Fix setting of global tcpFD

This corrects a flaw that stayed undetected for 2.5 years, introduced via c5a2cf82 Fixes ArcticaProject/nx-libs#573
parent 7f777e01
......@@ -3741,7 +3741,8 @@ int SetupTcpSocket()
// Open TCP socket emulating local display.
//
return ListenConnectionTCP((loopbackBind ? "localhost" : "*"), X_TCP_PORT + proxyPort, "X11");
tcpFD = ListenConnectionTCP((loopbackBind ? "localhost" : "*"), X_TCP_PORT + proxyPort, "X11");
return 1;
}
int SetupUnixSocket()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment