From: Nick Porter Date: Thu, 21 Jan 2021 09:44:19 +0000 (+0000) Subject: Amend fuzzer.c to correctly call test points X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8746ed50dac3c9dd0bc60f2b774b213fc9e625d7;p=thirdparty%2Ffreeradius-server.git Amend fuzzer.c to correctly call test points --- diff --git a/src/bin/fuzzer.c b/src/bin/fuzzer.c index f12058c7674..6672d658780 100644 --- a/src/bin/fuzzer.c +++ b/src/bin/fuzzer.c @@ -155,11 +155,12 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) { TALLOC_CTX *ctx = talloc_init_const("fuzzer"); - fr_pair_t *vp = NULL; + fr_pair_list_t vps; + fr_pair_list_init(&vps); if (!init) LLVMFuzzerInitialize(NULL, NULL); - tp->func(ctx, &vp, buf, len, decode_ctx); + tp->func(ctx, &vps, buf, len, decode_ctx); talloc_free(ctx); return 0;