addca lock mutex failure bug on free
This commit is contained in:
parent
57abb0a537
commit
d9e0c8e526
@ -447,6 +447,7 @@ int AddCA(CYASSL_CTX* ctx, buffer der, int force)
|
||||
signer->pubKeySize = cert.pubKeySize;
|
||||
signer->name = cert.subjectCN;
|
||||
XMEMCPY(signer->hash, cert.subjectHash, SHA_DIGEST_SIZE);
|
||||
signer->next = NULL; /* in case lock fails */
|
||||
|
||||
cert.publicKey = 0; /* don't free here */
|
||||
cert.subjectCN = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user