Continued development of AuthenticationToken Validation Service.

This commit is contained in:
Juan Carlos Luciani
2006-09-07 23:33:33 +00:00
parent 307ed2444c
commit 6ab8fe3080
14 changed files with 386 additions and 131 deletions

View File

@@ -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)
{

View File

@@ -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
//=======================================================================--
{

View File

@@ -166,7 +166,7 @@ ExecuteTests(void)
// Initialize the Svc Ipc Subsystem
if (IpcServerInit("TestServer",
3,
DebugLevel,
false) == 0)
{
// Set the server listen address