Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Mon May 11 08:09:16 2026
(Merged from https://github.com/openssl/openssl/pull/31121)
return testresult;
}
#endif /* !defined(OPENSSL_NO_CHACHA) */
+
+static int test_bio_dgram_mfail(void)
+{
+ BIO *bio;
+
+ MFAIL_start();
+ bio = BIO_new(BIO_s_dgram_mem());
+ MFAIL_end();
+
+ if (bio == NULL)
+ return 0;
+
+ BIO_free(bio);
+ return 1;
+}
+
#endif /* !defined(OPENSSL_NO_DGRAM) && !defined(OPENSSL_NO_SOCK) */
int setup_tests(void)
#if !defined(OPENSSL_NO_CHACHA)
ADD_ALL_TESTS(test_bio_dgram_pair, 3);
#endif
+ ADD_MFAIL_TEST(test_bio_dgram_mfail);
#endif
return 1;