diff --git a/src/ssl.c b/src/ssl.c index b05103274..4ee162b99 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -3640,9 +3640,6 @@ WOLFSSL_STACK* wolfSSL_X509_STORE_GetCerts(WOLFSSL_X509_STORE_CTX* s) /* get certificate buffer */ cert = &s->certs[certIdx]; - if (cert == NULL) - break; - dCert = (DecodedCert*)XMALLOC(sizeof(DecodedCert), NULL, DYNAMIC_TYPE_DCERT); if (dCert == NULL) {