From 91b3959063ef0ad13e975abea2b16f849b9cd99f Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 26 Jun 2015 11:56:21 -0600 Subject: [PATCH] fix uninitialized decoded cert in CertManagerVerify() --- src/ssl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 139e343f9..da689ae5b 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -2847,9 +2847,7 @@ int wolfSSL_CertManagerVerifyBuffer(WOLFSSL_CERT_MANAGER* cm, const byte* buff, info->consumed = 0; ret = PemToDer(buff, sz, CERT_TYPE, &der, cm->heap, info, &eccKey); - - if (ret == 0) - InitDecodedCert(cert, der.buffer, der.length, cm->heap); + InitDecodedCert(cert, der.buffer, der.length, cm->heap); #ifdef WOLFSSL_SMALL_STACK XFREE(info, NULL, DYNAMIC_TYPE_TMP_BUFFER);