Make sure buffer size for structure is set to the incoming size.
This commit is contained in:
parent
4df0612f64
commit
8d0875d82f
@ -137,7 +137,7 @@ int ll_InsertSharedSecretLink
|
||||
{ /* beginning of the call */
|
||||
/* ########################## DECLARATIONS START HERE ######################################## */
|
||||
|
||||
uint32_t keyLen = sscs_Utf8StrSize(key);
|
||||
uint32_t keyLen = kLen;
|
||||
LL_LINK_T *newLink = _ll_CreateLink(sizeof(LL_SHSEC_KEY_VAL_T) + keyLen + vLen);
|
||||
LL_SHSEC_KEY_VAL_T *sharedLink;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user