mirror of
https://gitee.com/openharmony/security_huks
synced 2024-11-23 14:50:06 +00:00
add code for clear enrollid
Signed-off-by: wuxintao <wuxintao5@huawei.com>
This commit is contained in:
parent
2ed0868ab1
commit
b3b5af161e
@ -615,10 +615,10 @@ static int32_t AppendUserAuthInfo(const struct HksParamSet *paramSet, int32_t us
|
||||
|
||||
*outParamSet = newParamSet;
|
||||
} while (0);
|
||||
HKS_FREE(enrolledInfo.data);
|
||||
HKS_MEMSET_FREE_BLOB(enrolledInfo);
|
||||
if (secInfo != NULL) {
|
||||
HKS_FREE(secInfo->enrolledInfo);
|
||||
HKS_FREE(secInfo);
|
||||
HKS_MEMSET_FREE_PTR(secInfo->enrolledInfo, sizeof(struct EnrolledInfoWrap) * secInfo->enrolledInfoLen);
|
||||
HKS_MEMSET_FREE_PTR(secInfo, sizeof(struct SecInfoWrap));
|
||||
}
|
||||
if (ret != HKS_SUCCESS) {
|
||||
HksFreeParamSet(&newParamSet);
|
||||
|
Loading…
Reference in New Issue
Block a user