diff --git a/CASA/micasacache/sscs_unx_ipc_client.c b/CASA/micasacache/sscs_unx_ipc_client.c index 1a7f1f1a..c44e9c58 100644 --- a/CASA/micasacache/sscs_unx_ipc_client.c +++ b/CASA/micasacache/sscs_unx_ipc_client.c @@ -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; }