mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-17 16:53:13 +00:00
Added NULL check
This commit is contained in:
@@ -1319,6 +1319,8 @@ int ILibWebClient_ProcessWebSocketData(char* buffer, int offset, int length, ILi
|
|||||||
int FIN;
|
int FIN;
|
||||||
unsigned char OPCODE;
|
unsigned char OPCODE;
|
||||||
int tempBegin = 0;
|
int tempBegin = 0;
|
||||||
|
|
||||||
|
if (wcdo == NULL) { return(length); }
|
||||||
ILibWebRequest *wr = (ILibWebRequest*)ILibQueue_PeekQueue(wcdo->RequestQueue);
|
ILibWebRequest *wr = (ILibWebRequest*)ILibQueue_PeekQueue(wcdo->RequestQueue);
|
||||||
ILibWebClient_WebSocketState *state;
|
ILibWebClient_WebSocketState *state;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user