From 8d0875d82f118a89e4320d5b920a26b19684da51 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Mon, 10 Dec 2007 20:45:14 +0000 Subject: [PATCH] Make sure buffer size for structure is set to the incoming size. --- CASA/common/sscs_ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CASA/common/sscs_ll.c b/CASA/common/sscs_ll.c index 88f7a980..cea5ed63 100644 --- a/CASA/common/sscs_ll.c +++ b/CASA/common/sscs_ll.c @@ -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;