diff options
Diffstat (limited to 'devel/fuzz/gnutls_client_fuzzer.cc')
-rw-r--r-- | devel/fuzz/gnutls_client_fuzzer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devel/fuzz/gnutls_client_fuzzer.cc b/devel/fuzz/gnutls_client_fuzzer.cc index b9c22200e6..4c598541f2 100644 --- a/devel/fuzz/gnutls_client_fuzzer.cc +++ b/devel/fuzz/gnutls_client_fuzzer.cc @@ -38,6 +38,8 @@ int LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) gnutls_certificate_credentials_t xcred; struct mem_st memdata; + gnutls_global_init(); + res = gnutls_init(&session, GNUTLS_CLIENT); assert(res >= 0); @@ -73,5 +75,6 @@ int LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) gnutls_deinit(session); gnutls_certificate_free_credentials(xcred); + gnutls_global_deinit(); return 0; } |