diff --git a/src/ssl.c b/src/ssl.c index 5bdb3ef50..ba99241dd 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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;