1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-05 03:03:34 +00:00

Added NULL checks

This commit is contained in:
Bryan Roe
2021-01-26 13:47:20 -08:00
parent eca6b61df5
commit a728ba40de
7 changed files with 58 additions and 32 deletions

View File

@@ -3048,7 +3048,7 @@ void ILibWebClient_CancelRequestEx2(ILibWebClient_StateObject wcdo, void *userRe
nextnode = ILibLinkedList_GetNextNode(node);
wr = (struct ILibWebRequest*)ILibLinkedList_GetDataFromNode(node);
if (wr->requestToken == userRequest)
if (wr != NULL && wr->requestToken == userRequest)
{
if (node == head)
{