mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 18:50:50 +02:00
Fix issue from review
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user