summaryrefslogtreecommitdiffstats
path: root/x11vnc/sslhelper.c
diff options
context:
space:
mode:
authorrunge <runge>2007-02-12 02:42:28 +0000
committerrunge <runge>2007-02-12 02:42:28 +0000
commit0016cd4280ee9a0d088454a508a9c7f6bde33f62 (patch)
tree41614a1dfbd8bba02f35a588e8cc87d4e7692173 /x11vnc/sslhelper.c
parent90d96b971f04b11fe1902091a94be94697738766 (diff)
downloadlibtdevnc-0016cd4280ee9a0d088454a508a9c7f6bde33f62.tar.gz
libtdevnc-0016cd4280ee9a0d088454a508a9c7f6bde33f62.zip
x11vnc: -grabalways, -forcedpms, -clientdpms, -noserverdpms, -loopbg, -svc, -xdmsvc
Diffstat (limited to 'x11vnc/sslhelper.c')
-rw-r--r--x11vnc/sslhelper.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11vnc/sslhelper.c b/x11vnc/sslhelper.c
index 9ccc4a9..36a6b42 100644
--- a/x11vnc/sslhelper.c
+++ b/x11vnc/sslhelper.c
@@ -1458,6 +1458,24 @@ void accept_openssl(int mode) {
}
close(i);
}
+ if (screen->listenSock >= 0) {
+ close(screen->listenSock);
+ FD_CLR(screen->listenSock,&screen->allFds);
+ screen->listenSock = -1;
+ }
+ if (screen->httpListenSock >= 0) {
+ close(screen->httpListenSock);
+ FD_CLR(screen->httpListenSock,&screen->allFds);
+ screen->httpListenSock = -1;
+ }
+ if (openssl_sock >= 0) {
+ close(openssl_sock);
+ openssl_sock = -1;
+ }
+ if (https_sock >= 0) {
+ close(https_sock);
+ https_sock = -1;
+ }
/*
* sadly, we are a long lived child and so the large