1
This commit is contained in:
parent
7288e3d00e
commit
202f675e5f
@ -190,7 +190,7 @@ namespace a8
|
|||||||
|
|
||||||
void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen)
|
void WebSocketSession::DecodeFrame(char* buf, int& offset, unsigned int buflen)
|
||||||
{
|
{
|
||||||
if (offset + 2 < buflen) {
|
if (offset + 2 > buflen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char* real_buf = buf + offset;
|
char* real_buf = buf + offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user