From c3ed45d33182eb512e27547b69334ba942d92772 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 27 Oct 2023 16:34:04 -0600 Subject: [PATCH] additional case for CID 330392 and 330401 --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 6516366c6..b390efd63 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -36778,7 +36778,7 @@ int wolfSSL_PEM_write_bio_PKCS7(WOLFSSL_BIO* bio, PKCS7* p7) hashType = wc_OidGetHash(p7->hashOID); hashSz = wc_HashGetDigestSize(hashType); if (hashSz > WC_MAX_DIGEST_SIZE) - return WOLFSSL_FAILURE; + goto error; /* only SIGNED_DATA is supported */ switch (p7->contentOID) {