Continued development of AuthenticationToken Validation Service.
This commit is contained in:
		| @@ -291,10 +291,12 @@ SChannel::connectionThread( | ||||
|  | ||||
|                         DbgTrace(2, "SChannel::connectionThread- Processing Request Data Packet, Obj = %08X\n", pSChannel); | ||||
|  | ||||
|                         // Allocate a buffer big enough to receive the payload | ||||
|                         pRecvBuff = new char[payloadLength]; | ||||
|                         // Allocate a buffer big enough to receive the payload. Allow space to NULL terminate. | ||||
|                         pRecvBuff = new char[payloadLength + 1]; | ||||
|                         if (pRecvBuff != NULL) | ||||
|                         { | ||||
|                            pRecvBuff[payloadLength] = '\0'; | ||||
|  | ||||
|                            // Buffer allocated, receive the Req payload. | ||||
|                            while (1) | ||||
|                            { | ||||
|   | ||||
| @@ -830,6 +830,10 @@ IpcServerGetRequestData( | ||||
| // Notes:         The returned buffer SHOULD NOT be released by the calling | ||||
| //                application. | ||||
| // | ||||
| //                The returned buffer always contains a NULL after the | ||||
| //                data indicated. You may be able to leverage this to | ||||
| //                treat the data as a NULL terminated string in cases | ||||
| //                where the request consists of ASCII characters. | ||||
| // L1 | ||||
| //=======================================================================-- | ||||
| { | ||||
|   | ||||
| @@ -166,7 +166,7 @@ ExecuteTests(void) | ||||
|  | ||||
|    // Initialize the Svc Ipc Subsystem | ||||
|    if (IpcServerInit("TestServer", | ||||
|                      3, | ||||
|                      DebugLevel, | ||||
|                      false) == 0) | ||||
|    { | ||||
|       // Set the server listen address | ||||
|   | ||||
		Reference in New Issue
	
	Block a user