aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd_ws/mhd_websocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd_ws/mhd_websocket.c')
-rw-r--r--src/microhttpd_ws/mhd_websocket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd_ws/mhd_websocket.c b/src/microhttpd_ws/mhd_websocket.c
index 0e977973..12b46eef 100644
--- a/src/microhttpd_ws/mhd_websocket.c
+++ b/src/microhttpd_ws/mhd_websocket.c
@@ -30,11 +30,11 @@
30 30
31struct MHD_WebSocketStream 31struct MHD_WebSocketStream
32{ 32{
33 /* The function pointer to malloc for payload (can be used to use different memory managment) */ 33 /* The function pointer to malloc for payload (can be used to use different memory management) */
34 MHD_WebSocketMallocCallback malloc; 34 MHD_WebSocketMallocCallback malloc;
35 /* The function pointer to realloc for payload (can be used to use different memory managment) */ 35 /* The function pointer to realloc for payload (can be used to use different memory management) */
36 MHD_WebSocketReallocCallback realloc; 36 MHD_WebSocketReallocCallback realloc;
37 /* The function pointer to free for payload (can be used to use different memory managment) */ 37 /* The function pointer to free for payload (can be used to use different memory management) */
38 MHD_WebSocketFreeCallback free; 38 MHD_WebSocketFreeCallback free;
39 /* The flags specified upon initialization. It may alter the behavior of decoding/encoding */ 39 /* The flags specified upon initialization. It may alter the behavior of decoding/encoding */
40 int flags; 40 int flags;
@@ -400,7 +400,7 @@ MHD_websocket_decode (struct MHD_WebSocketStream*ws,
400 if (0 != (opcode & 0x70)) 400 if (0 != (opcode & 0x70))
401 { 401 {
402 /* RFC 6455 5.2 RSV1-3: If a reserved flag is set */ 402 /* RFC 6455 5.2 RSV1-3: If a reserved flag is set */
403 /* (while it isn't specified by an extension) the communcation must fail. */ 403 /* (while it isn't specified by an extension) the communication must fail. */
404 ws->validity = MHD_WEBSOCKET_VALIDITY_INVALID; 404 ws->validity = MHD_WEBSOCKET_VALIDITY_INVALID;
405 if (0 != (ws->flags 405 if (0 != (ws->flags
406 & MHD_WEBSOCKET_FLAG_GENERATE_CLOSE_FRAMES_ON_ERROR)) 406 & MHD_WEBSOCKET_FLAG_GENERATE_CLOSE_FRAMES_ON_ERROR))