Bug 237834. Set value length to zero when key exists without value.

This commit is contained in:
Jim Norman 2007-01-23 09:40:44 +00:00
parent c809a42926
commit e9dcb47cda

View File

@ -2294,6 +2294,8 @@ int32_t ipc_ReadKey
memcpy(&dataLen,pReply, MSG_DWORD_LEN);
if( 0 == dataLen )
{
*valLen = dataLen;
// Cleanup the channel by reading the return code.
retVal = IPC_READ(ssHandle->platHandle,&sockReturn, MSG_DWORD_LEN);
if( retVal < 0 )
@ -2301,6 +2303,7 @@ int32_t ipc_ReadKey
retCode = NSSCS_E_SYSTEM_FAILURE;
break;
}
retCode = mapReturnCode(sockReturn);
break;
}