From 9357db4d0c75a4d52f6cb1e31c99bc8bca0629b3 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 11 Oct 2019 15:27:15 -0600 Subject: [PATCH] check value of ret in test cases --- tests/api.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 1808b3c21..4543f23ab 100644 --- a/tests/api.c +++ b/tests/api.c @@ -28143,7 +28143,9 @@ static int test_various_pathlen_chains(void) AssertIntEQ(test_chainG(cm), 0); - wolfSSL_CertManagerUnloadCAs(cm); + ret = wolfSSL_CertManagerUnloadCAs(cm); + if (ret != WOLFSSL_SUCCESS) + return -1; wolfSSL_CertManagerFree(cm); /* end test chain G */ @@ -28162,6 +28164,8 @@ static int test_various_pathlen_chains(void) } ret = wolfSSL_CertManagerUnloadCAs(cm); + if (ret != WOLFSSL_SUCCESS) + return -1; wolfSSL_CertManagerFree(cm); /* end test chain H */ @@ -28181,6 +28185,8 @@ static int test_various_pathlen_chains(void) } ret = wolfSSL_CertManagerUnloadCAs(cm); + if (ret != WOLFSSL_SUCCESS) + return -1; wolfSSL_CertManagerFree(cm); /* Test chain J (Again only first ICA has pathLen set and it's set to 2,