summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
authorrunge <runge>2005-07-02 02:45:13 +0000
committerrunge <runge>2005-07-02 02:45:13 +0000
commitc59929365c6b73d89fd0ccbdcb223c0ec44a4d40 (patch)
treeb1eb874bfde00f93ec5b316f7c48fa2735aebdb9 /libvncserver
parent462ffd3f3eddd9b428e76b0fd32d3f988660bac0 (diff)
downloadlibtdevnc-c59929365c6b73d89fd0ccbdcb223c0ec44a4d40.tar.gz
libtdevnc-c59929365c6b73d89fd0ccbdcb223c0ec44a4d40.zip
x11vnc: -gui tray mode, httpd.c: check httpListenSock >= 0.
Diffstat (limited to 'libvncserver')
-rwxr-xr-xlibvncserver/httpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvncserver/httpd.c b/libvncserver/httpd.c
index 4be8f55..676f557 100755
--- a/libvncserver/httpd.c
+++ b/libvncserver/httpd.c
@@ -136,6 +136,9 @@ rfbHttpCheckFds(rfbScreenInfoPtr rfbScreen)
if (!rfbScreen->httpDir)
return;
+ if (rfbScreen->httpListenSock < 0)
+ return;
+
FD_ZERO(&fds);
FD_SET(rfbScreen->httpListenSock, &fds);
if (rfbScreen->httpSock >= 0) {