summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-30 12:17:20 +0200
committerGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-30 12:31:09 +0200
commitb1671e6de99f00a5391bcb08f7106462b97b567a (patch)
tree61af2290f2d5e555a6db6e25b5ae7599c8a88419
parent0f2ac00f6ee8102c3695f40a1896edff7c54fbd5 (diff)
downloadlibvncserver-b1671e6de99f00a5391bcb08f7106462b97b567a.zip
libvncserver-b1671e6de99f00a5391bcb08f7106462b97b567a.tar.gz
websockets: fix webSocketCheckDisconnect()
Do not consume the peeked data if no close frame was detected.
-rwxr-xr-xlibvncserver/websockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
index cec2230..777c3d8 100755
--- a/libvncserver/websockets.c
+++ b/libvncserver/websockets.c
@@ -876,7 +876,7 @@ webSocketCheckDisconnect(rfbClientPtr cl)
doclose = 1;
break;
default:
- ;
+ return FALSE;
}
if (cl->sslctx)
OpenPOWER on IntegriCloud