Continued development of AuthenticationToken Validation Service.
This commit is contained in:
@@ -447,10 +447,12 @@ CChannel::connectionThread(
|
||||
|
||||
DbgTrace(2, "CChannel::connectionThread- Processing Request Data Packet, Obj = %08X\n", pCChannel);
|
||||
|
||||
// Allocate a buffer big enough to receive the payload
|
||||
pRecvBuff = (char*) malloc(payloadLength);
|
||||
// Allocate a buffer big enough to receive the payload. Allow space to NULL terminate.
|
||||
pRecvBuff = (char*) malloc(payloadLength + 1);
|
||||
if (pRecvBuff != NULL)
|
||||
{
|
||||
pRecvBuff[payloadLength] = '\0';
|
||||
|
||||
// Buffer allocated, receive the request payload.
|
||||
while (1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user