1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-17 08:43:21 +00:00

Added NULL check

This commit is contained in:
Bryan Roe
2020-12-03 11:55:00 -08:00
parent 30363a70f1
commit 8119f87d6b

View File

@@ -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;