summaryrefslogtreecommitdiffstats
path: root/libvncserver/websockets.c
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2013-02-27 09:58:39 -0600
committerJoel Martin <github@martintribe.org>2013-02-27 10:00:00 -0600
commit7b9fc019de681125df48eb0650d3235aed87d8a5 (patch)
tree72fd78bfbd60e474d30bb0e778c8ac214de8c126 /libvncserver/websockets.c
parent0de0fa498d58526bf3516dc23ddf9060baa47808 (diff)
downloadlibtdevnc-7b9fc019de681125df48eb0650d3235aed87d8a5.tar.gz
libtdevnc-7b9fc019de681125df48eb0650d3235aed87d8a5.zip
Set opcode correctly for binary frames.
Diffstat (limited to 'libvncserver/websockets.c')
-rw-r--r--libvncserver/websockets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
index 10743fe..bd5d9d0 100644
--- a/libvncserver/websockets.c
+++ b/libvncserver/websockets.c
@@ -794,6 +794,7 @@ webSocketsEncodeHybi(rfbClientPtr cl, const char *src, int len, char **dst)
/* calculate the resulting size */
blen = B64LEN(len);
} else {
+ opcode = WS_OPCODE_BINARY_FRAME;
blen = len;
}