X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=fuzz%2Fconf.c;h=87fe857099b8482beaab2eafbb2d6c28c24a2651;hp=27429c570f1285855fb571010ba72e352d088d7f;hb=d69d8f904c9c558c7a9455ee816e494690d80ca8;hpb=0282aeb690d63fab73a07191b63300a2fe30d212 diff --git a/fuzz/conf.c b/fuzz/conf.c index 27429c570f..87fe857099 100644 --- a/fuzz/conf.c +++ b/fuzz/conf.c @@ -13,10 +13,13 @@ */ #include +#include #include "fuzzer.h" int FuzzerInitialize(int *argc, char ***argv) { + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); + ERR_get_state(); return 1; } @@ -35,6 +38,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) NCONF_load_bio(conf, in, &eline); NCONF_free(conf); BIO_free(in); + ERR_clear_error(); return 0; }