Skip to content

Commit 525714c

Browse files
committed
Fixup C++ Problem
1 parent ce226a8 commit 525714c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/x509_str.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,10 @@ WOLFSSL_LOCAL int X509StorePushCertsToCM(WOLFSSL_X509_STORE* store)
16581658
store->trusted = NULL;
16591659
}
16601660

1661-
return anyFail ? WOLFSSL_FATAL_ERROR : WOLFSSL_SUCCESS;
1661+
if (anyFail) {
1662+
return WOLFSSL_FATAL_ERROR;
1663+
}
1664+
return WOLFSSL_SUCCESS;
16621665
}
16631666

16641667
int wolfSSL_X509_STORE_add_cert(WOLFSSL_X509_STORE* store, WOLFSSL_X509* x509)

0 commit comments

Comments
 (0)