We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61e4142 commit de59e9dCopy full SHA for de59e9d
1 file changed
tests/api.c
@@ -38173,7 +38173,8 @@ static int test_wolfSSL_BIO_write(void)
38173
ExpectNotNull(bio64 = BIO_new(BIO_f_base64()));
38174
ExpectNotNull(bio = BIO_push(BIO_new(BIO_f_base64()), bio64));
38175
if (EXPECT_FAIL()) {
38176
- BIO_free(bio64);
+ BIO_free_all(bio);
38177
+ bio = NULL;
38178
bio64 = NULL;
38179
}
38180
ExpectNotNull(bio_mem = BIO_new(BIO_s_mem()));
@@ -38183,6 +38184,9 @@ static int test_wolfSSL_BIO_write(void)
38183
38184
38185
38186
/* now should convert to base64 when stored and then decode with read */
38187
+ if (bio == NULL) {
38188
+ ExpectNotNull(bio = BIO_new(BIO_f_base64()));
38189
+ }
38190
ExpectIntEQ(BIO_write(bio, msg, sizeof(msg)), 25);
38191
BIO_flush(bio);
38192
sz = sizeof(out);
0 commit comments