24 lines
745 B
Diff
24 lines
745 B
Diff
|
Subject: [PATCH] Fix reversed logic in vncIsTCPPortUsed()
|
||
|
Author: Pierre Ossman <ossman@cendio.se>
|
||
|
Patch-mainline: Upstream
|
||
|
Git-commit: 6bb08082956334711de44dad49b95f90a7b02700
|
||
|
Signed-off-by: Michal Srb <msrb@suse.com>
|
||
|
|
||
|
Patch by Jay Kulpinski. Prevents -inetd mode from automatically
|
||
|
finding a free X11 display number.
|
||
|
|
||
|
diff --git a/unix/xserver/hw/vnc/RFBGlue.cc b/unix/xserver/hw/vnc/RFBGlue.cc
|
||
|
index 09832ab..a150792 100644
|
||
|
--- a/unix/xserver/hw/vnc/RFBGlue.cc
|
||
|
+++ b/unix/xserver/hw/vnc/RFBGlue.cc
|
||
|
@@ -194,7 +194,7 @@ int vncIsTCPPortUsed(int port)
|
||
|
std::list<network::TcpListener> dummy;
|
||
|
network::createTcpListeners (&dummy, 0, port);
|
||
|
} catch (rdr::Exception& e) {
|
||
|
- return 0;
|
||
|
+ return 1;
|
||
|
}
|
||
|
- return 1;
|
||
|
+ return 0;
|
||
|
}
|