forked from wolfSSL/wolfssl
Fix building with openssl extra x509 small writes to heap without alloc
This commit is contained in:
@ -10563,7 +10563,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* allocate buffer for certs */
|
/* allocate buffer for certs */
|
||||||
#ifdef OPENSSL_EXTRA
|
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
||||||
args->certs = (buffer*)XMALLOC(sizeof(buffer) *
|
args->certs = (buffer*)XMALLOC(sizeof(buffer) *
|
||||||
(ssl->verifyDepth + 1), ssl->heap, DYNAMIC_TYPE_DER);
|
(ssl->verifyDepth + 1), ssl->heap, DYNAMIC_TYPE_DER);
|
||||||
if (args->certs == NULL) {
|
if (args->certs == NULL) {
|
||||||
|
Reference in New Issue
Block a user