summaryrefslogtreecommitdiffstats
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index 15265c4..dd89b54 100644
--- a/httpd.c
+++ b/httpd.c
@@ -192,7 +192,9 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen)
static void
httpCloseSock(rfbScreenInfoPtr rfbScreen)
{
+ close(rfbScreen->httpSock);
rfbScreen->httpSock = -1;
+ buf_filled = 0;
}
static rfbClientRec cl;