Fix issue from review

This commit is contained in:
Eric Blankenhorn
2026-02-24 12:43:46 -06:00
parent 8f787909da
commit 5536ecf026
+3
View File
@@ -3554,6 +3554,9 @@ static int test_wolfSSL_add_to_chain_overflow(void)
}
ctx->certChain = fakeChain;
}
else {
XFREE(fakeChain, ctx ? ctx->heap : NULL, DYNAMIC_TYPE_CERT);
}
/* Try to add another cert - this MUST fail due to overflow guard. */
ExpectNotNull(x509 = wolfSSL_X509_load_certificate_file(