fix uninitialized decoded cert in CertManagerVerify()

This commit is contained in:
John Safranek
2015-06-26 11:56:21 -06:00
parent 8b324b94e9
commit 91b3959063

View File

@@ -2847,8 +2847,6 @@ int wolfSSL_CertManagerVerifyBuffer(WOLFSSL_CERT_MANAGER* cm, const byte* buff,
info->consumed = 0; info->consumed = 0;
ret = PemToDer(buff, sz, CERT_TYPE, &der, cm->heap, info, &eccKey); 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 #ifdef WOLFSSL_SMALL_STACK