diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-08-10 11:04:33 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-08-10 11:04:33 +0200 |
commit | 6bb08082956334711de44dad49b95f90a7b02700 (patch) | |
tree | 17995389c37375f37ef78cb8a6dec0da760379c2 /unix | |
parent | 78f749dfadcc409d78dec93e9b8245a4eabd7b0e (diff) | |
download | tigervnc-6bb08082956334711de44dad49b95f90a7b02700.tar.gz tigervnc-6bb08082956334711de44dad49b95f90a7b02700.zip |
Fix reversed logic in vncIsTCPPortUsed()
Patch by Jay Kulpinski. Prevents -inetd mode from automatically
finding a free X11 display number.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/xserver/hw/vnc/RFBGlue.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/RFBGlue.cc b/unix/xserver/hw/vnc/RFBGlue.cc index 09832ab7..a1507924 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; } |