Bug 237834. Set value length to zero when key exists without value.
This commit is contained in:
parent
c809a42926
commit
e9dcb47cda
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user