Commit 431b414c authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko Committed by Aleksey

build for gcc-9.2 fixed

error: jump to label 'exit'
note:   crosses initialization of 'CAResult_t pskRet'
note:   crosses initialization of 'uint8_t subOwnerPSK [16]'

Change-Id: I23ae74e23a15da103d82994bd98e419f71540ea7
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent 2ca8390c
......@@ -2177,12 +2177,13 @@ static bool FillPrivateDataOfSubOwnerPSK(OicSecCred_t* receivedCred, const CAEnd
const OicSecDoxm_t* doxm, const OicUuid_t* subOwner)
{
unsigned char* b64Buf = NULL;
uint8_t subOwnerPSK[OWNER_PSK_LENGTH_128] = {0};
CAResult_t pskRet = CA_STATUS_OK;
//Derive OwnerPSK locally
const char* oxmLabel = GetOxmString(doxm->oxmSel);
VERIFY_NOT_NULL(TAG, oxmLabel, ERROR);
uint8_t subOwnerPSK[OWNER_PSK_LENGTH_128] = {0};
CAResult_t pskRet = CAGenerateOwnerPSK(ownerAddr,
pskRet = CAGenerateOwnerPSK(ownerAddr,
(uint8_t*)oxmLabel, strlen(oxmLabel),
subOwner->id, sizeof(subOwner->id),
doxm->deviceID.id, sizeof(doxm->deviceID.id),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment