mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
addca lock mutex failure bug on free
This commit is contained in:
@@ -447,6 +447,7 @@ int AddCA(CYASSL_CTX* ctx, buffer der, int force)
|
|||||||
signer->pubKeySize = cert.pubKeySize;
|
signer->pubKeySize = cert.pubKeySize;
|
||||||
signer->name = cert.subjectCN;
|
signer->name = cert.subjectCN;
|
||||||
XMEMCPY(signer->hash, cert.subjectHash, SHA_DIGEST_SIZE);
|
XMEMCPY(signer->hash, cert.subjectHash, SHA_DIGEST_SIZE);
|
||||||
|
signer->next = NULL; /* in case lock fails */
|
||||||
|
|
||||||
cert.publicKey = 0; /* don't free here */
|
cert.publicKey = 0; /* don't free here */
|
||||||
cert.subjectCN = 0;
|
cert.subjectCN = 0;
|
||||||
|
Reference in New Issue
Block a user