Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
new websocket handling
[src/app-framework-binder.git]
/
src
/
websock.c
diff --git
a/src/websock.c
b/src/websock.c
index
41e063f
..
c578eba
100644
(file)
--- a/
src/websock.c
+++ b/
src/websock.c
@@
-199,10
+199,10
@@
static int check_control_header(struct websock *ws)
return 0;
if (FRAME_GET_RSV3(ws->header[0]) != 0)
return 0;
return 0;
if (FRAME_GET_RSV3(ws->header[0]) != 0)
return 0;
- if (FRAME_GET_MASK(ws->header[1]))
- return 0;
if (FRAME_GET_OPCODE(ws->header[0]) == OPCODE_CLOSE)
return FRAME_GET_PAYLOAD_LEN(ws->header[1]) != 1;
if (FRAME_GET_OPCODE(ws->header[0]) == OPCODE_CLOSE)
return FRAME_GET_PAYLOAD_LEN(ws->header[1]) != 1;
+ if (FRAME_GET_MASK(ws->header[1]))
+ return 0;
return FRAME_GET_PAYLOAD_LEN(ws->header[1]) == 0;
}
return FRAME_GET_PAYLOAD_LEN(ws->header[1]) == 0;
}