diff options
author | Gernot Tenchio <gernot.tenchio@securepoint.de> | 2011-08-30 12:17:20 +0200 |
---|---|---|
committer | Gernot Tenchio <gernot.tenchio@securepoint.de> | 2011-08-30 12:31:09 +0200 |
commit | b1671e6de99f00a5391bcb08f7106462b97b567a (patch) | |
tree | 61af2290f2d5e555a6db6e25b5ae7599c8a88419 | |
parent | 0f2ac00f6ee8102c3695f40a1896edff7c54fbd5 (diff) | |
download | libvncserver-b1671e6de99f00a5391bcb08f7106462b97b567a.zip libvncserver-b1671e6de99f00a5391bcb08f7106462b97b567a.tar.gz |
websockets: fix webSocketCheckDisconnect()
Do not consume the peeked data if no close frame was detected.
-rwxr-xr-x | libvncserver/websockets.c | 2 |
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) |