From: Arran Cudbard-Bell Date: Thu, 31 Jul 2025 06:48:52 +0000 (-0700) Subject: Revert "might as well save the result somewhere" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36d1ef2a375fb5b6143aecf036501fa04b13d0ad;p=thirdparty%2Ffreeradius-server.git Revert "might as well save the result somewhere" This reverts commit 67362500acb9860f0175900236c182b4ae78d420. --- diff --git a/src/bin/unit_test_module.c b/src/bin/unit_test_module.c index b9002f3faa..ded787d602 100644 --- a/src/bin/unit_test_module.c +++ b/src/bin/unit_test_module.c @@ -60,8 +60,6 @@ do { \ */ static bool filedone = false; static int my_debug_lvl = 0; -static unlang_result_t result = UNLANG_RESULT_NOT_SET; - char const *radiusd_version = RADIUSD_VERSION_BUILD("unit_test_module"); @@ -196,8 +194,6 @@ static request_t *request_from_file(TALLOC_CTX *ctx, FILE *fp, fr_client_t *clie static int number = 0; - result = UNLANG_RESULT_NOT_SET; - if (!dict_protocol) { fr_strerror_printf_push("%s dictionary failed to load", PROTOCOL_NAME); return NULL; @@ -357,7 +353,7 @@ static request_t *request_from_file(TALLOC_CTX *ctx, FILE *fp, fr_client_t *clie * New async listeners */ request->async = talloc_zero(request, fr_async_t); - unlang_call_push(&result, request, server_cs, UNLANG_TOP_FRAME); + unlang_call_push(NULL, request, server_cs, UNLANG_TOP_FRAME); return request; }