mirror of
https://gitee.com/openharmony/security_certificate_framework
synced 2024-11-23 14:39:44 +00:00
修复FreeX509CertChainValidateParams函数中的非功能bug
Signed-off-by: lanming <lanming@huawei.com>
This commit is contained in:
parent
989eba3ad9
commit
ae266cb9e0
@ -410,6 +410,13 @@ void FreeX509CertChainValidateParams(HcfX509CertChainValidateParams ¶m)
|
||||
CfFree(param.certCRLCollections);
|
||||
param.certCRLCollections = nullptr;
|
||||
}
|
||||
|
||||
CfBlobFree(&(param.sslHostname));
|
||||
if (param.keyUsage != nullptr) {
|
||||
CfFree(param.keyUsage->data);
|
||||
CfFree(param.keyUsage);
|
||||
param.keyUsage = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void FreeTrustAnchorArray(HcfX509TrustAnchorArray *trustAnchorArray, bool freeCertFlag)
|
||||
|
Loading…
Reference in New Issue
Block a user