From: Alan T. DeKok Date: Mon, 29 Dec 2025 12:18:44 +0000 (-0500) Subject: tweak fault handler setup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f9ae9cdfa6fa13e29f4fe939ca5dff0ee34427;p=thirdparty%2Ffreeradius-server.git tweak fault handler setup --- diff --git a/src/bin/fuzzer.c b/src/bin/fuzzer.c index 8ef5ffc5a90..deb784557e8 100644 --- a/src/bin/fuzzer.c +++ b/src/bin/fuzzer.c @@ -124,11 +124,6 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) */ fr_talloc_fault_setup(); - if (fr_fault_setup(autofree, NULL, "fuzzer_XX_PROTOCOL_XX") < 0) { - fr_perror("fuzzer: Failed to register fault handler"); - fr_exit_now(EXIT_FAILURE); - } - /* * Initialise the error stack _before_ we run any * tests so there's no chance of the memory @@ -247,13 +242,10 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) */ dl_proto = fuzzer_dict_init(RTLD_DEFAULT, proto); - if (panic_action) { - autofree = talloc_autofree_context(); - - if (fr_fault_setup(autofree, panic_action, (*argv)[0]) < 0) { - fr_perror("Failed initializing panic action"); - fr_exit_now(EXIT_FAILURE); - } + autofree = talloc_autofree_context(); + if (fr_fault_setup(autofree, panic_action, (*argv)[0]) < 0) { + fr_perror("Failed initializing fault handler"); + fr_exit_now(EXIT_FAILURE); } init = true;