summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-08-10 11:04:33 +0200
committerPierre Ossman <ossman@cendio.se>2015-08-10 11:04:33 +0200
commit6bb08082956334711de44dad49b95f90a7b02700 (patch)
tree17995389c37375f37ef78cb8a6dec0da760379c2 /unix
parent78f749dfadcc409d78dec93e9b8245a4eabd7b0e (diff)
downloadtigervnc-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.cc4
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;
}