Skip to content

Commit 82c6f7e

Browse files
committed
fix error handleing
1 parent 83303d3 commit 82c6f7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/api/test_asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ int test_SerialNumber0_RootCA(void)
699699
/* Test 5: Self-signed non-CA certificate with serial 0 should be rejected */
700700
ExpectNotNull(cm = wolfSSL_CertManagerNew());
701701
ExpectIntEQ(wolfSSL_CertManagerLoadCA(cm, selfSignedNonCASerial0File, NULL),
702-
WC_NO_ERR_TRACE(ASN_PARSE_E));
702+
WS_RETURN_CODE(WC_NO_ERR_TRACE(ASN_PARSE_E), WOLFSSL_FAILURE));
703703

704704
if (cm != NULL) {
705705
wolfSSL_CertManagerFree(cm);

0 commit comments

Comments
 (0)