diff options
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/asn1parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/asn1parse.c b/fuzz/asn1parse.c index ac888e535a..72b0df8a46 100644 --- a/fuzz/asn1parse.c +++ b/fuzz/asn1parse.c @@ -24,6 +24,8 @@ static BIO *bio_out; int FuzzerInitialize(int *argc, char ***argv) { bio_out = BIO_new_file("/dev/null", "w"); + if (bio_out == NULL) + bio_out = BIO_new(BIO_s_mem()); OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); ERR_clear_error(); CRYPTO_free_ex_index(0, -1); |