From 08c02b037c2b22387ee790bb70a9e2bc4889efbd Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 19 May 2020 17:12:36 -0600 Subject: [PATCH] Fix building with openssl extra x509 small writes to heap without alloc --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 8ccbdc6be..95a1cbcbe 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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) {