Merge pull request #2986 from kaleb-himes/ZD9610_REPORT2

Fix building with openssl extra x509 small writes to heap without alloc
This commit is contained in:
David Garske
2020-05-20 08:10:43 -07:00
committed by GitHub

View File

@ -10563,7 +10563,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
#endif
/* allocate buffer for certs */
#ifdef OPENSSL_EXTRA
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
args->certs = (buffer*)XMALLOC(sizeof(buffer) *
(ssl->verifyDepth + 1), ssl->heap, DYNAMIC_TYPE_DER);
if (args->certs == NULL) {