Bug 237834. Set value length to zero when key exists without value.
This commit is contained in:
		| @@ -2294,6 +2294,8 @@ int32_t ipc_ReadKey | |||||||
|         memcpy(&dataLen,pReply, MSG_DWORD_LEN); |         memcpy(&dataLen,pReply, MSG_DWORD_LEN); | ||||||
|         if( 0 == dataLen ) |         if( 0 == dataLen ) | ||||||
|         { |         { | ||||||
|  | 			*valLen = dataLen; | ||||||
|  |  | ||||||
|             // Cleanup the channel by reading the return code. |             // Cleanup the channel by reading the return code. | ||||||
|             retVal = IPC_READ(ssHandle->platHandle,&sockReturn, MSG_DWORD_LEN); |             retVal = IPC_READ(ssHandle->platHandle,&sockReturn, MSG_DWORD_LEN); | ||||||
|             if( retVal < 0 ) |             if( retVal < 0 ) | ||||||
| @@ -2301,6 +2303,7 @@ int32_t ipc_ReadKey | |||||||
|                 retCode = NSSCS_E_SYSTEM_FAILURE; |                 retCode = NSSCS_E_SYSTEM_FAILURE; | ||||||
|                 break; |                 break; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             retCode = mapReturnCode(sockReturn); |             retCode = mapReturnCode(sockReturn); | ||||||
|             break; |             break; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user