1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-22 11:13:21 +00:00

First Rev of Digest AUTH Unit Test

Fixed crash in ILibWebClient caused by NULL dereference
This commit is contained in:
Bryan Roe
2022-07-02 00:03:41 -07:00
parent 62195b6081
commit 143f7ef578
2 changed files with 182 additions and 8 deletions

View File

@@ -1865,9 +1865,16 @@ ILibWebClient_DataResults ILibWebClient_OnData(ILibAsyncSocket_SocketModule sock
// so we need to copy it out, so we can recycle the buffer
// for the body
//
tph = ILibClonePacket(wcdo->header);
ILibDestructPacket(wcdo->header);
wcdo->header = tph;
if (wcdo->header != NULL)
{
tph = ILibClonePacket(wcdo->header);
ILibDestructPacket(wcdo->header);
wcdo->header = tph;
}
//else
//{
// printf("WCDO/HEADER was NULL\n");
//}
}
}
}