mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
fix XMALLOC_USER typos
This commit is contained in:
@@ -809,7 +809,7 @@ int AddCA(CYASSL_CERT_MANAGER* cm, buffer der, int type, int verify)
|
|||||||
CYASSL_MSG(" Freeing Parsed CA");
|
CYASSL_MSG(" Freeing Parsed CA");
|
||||||
FreeDecodedCert(&cert);
|
FreeDecodedCert(&cert);
|
||||||
CYASSL_MSG(" Freeing der CA");
|
CYASSL_MSG(" Freeing der CA");
|
||||||
XFREE(der.buffer, ctx->heap, DYNAMIC_TYPE_CA);
|
XFREE(der.buffer, cm->heap, DYNAMIC_TYPE_CA);
|
||||||
CYASSL_MSG(" OK Freeing der CA");
|
CYASSL_MSG(" OK Freeing der CA");
|
||||||
|
|
||||||
CYASSL_LEAVE("AddCA", ret);
|
CYASSL_LEAVE("AddCA", ret);
|
||||||
@@ -1162,7 +1162,7 @@ int AddCA(CYASSL_CERT_MANAGER* cm, buffer der, int type, int verify)
|
|||||||
XMEMCPY(ctx->certChain.buffer, chainBuffer, idx);
|
XMEMCPY(ctx->certChain.buffer, chainBuffer, idx);
|
||||||
}
|
}
|
||||||
if (dynamicBuffer)
|
if (dynamicBuffer)
|
||||||
XFREE(chainBuffer, ctx->heap, DYNAMIC_FILE_TYPE);
|
XFREE(chainBuffer, ctx->heap, DYNAMIC_TYPE_FILE);
|
||||||
if (ctx->certChain.buffer == NULL) {
|
if (ctx->certChain.buffer == NULL) {
|
||||||
XFREE(der.buffer, ctx->heap, dynamicType);
|
XFREE(der.buffer, ctx->heap, dynamicType);
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
|
Reference in New Issue
Block a user