From 525714ca7c6df5f79eaab1266091cd318c494263 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Mon, 13 Apr 2026 17:29:23 -0400 Subject: [PATCH] Fixup C++ Problem --- src/x509_str.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/x509_str.c b/src/x509_str.c index aa74267c4d..8d9536e7bf 100644 --- a/src/x509_str.c +++ b/src/x509_str.c @@ -1658,7 +1658,10 @@ WOLFSSL_LOCAL int X509StorePushCertsToCM(WOLFSSL_X509_STORE* store) store->trusted = NULL; } - return anyFail ? WOLFSSL_FATAL_ERROR : WOLFSSL_SUCCESS; + if (anyFail) { + return WOLFSSL_FATAL_ERROR; + } + return WOLFSSL_SUCCESS; } int wolfSSL_X509_STORE_add_cert(WOLFSSL_X509_STORE* store, WOLFSSL_X509* x509)