]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
might as well save the result somewhere
authorAlan T. DeKok <aland@freeradius.org>
Wed, 23 Jul 2025 07:11:05 +0000 (09:11 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 28 Jul 2025 10:12:54 +0000 (06:12 -0400)
src/bin/unit_test_module.c

index ded787d602cb022159f0f90d272bc5ce89ccb7be..b9002f3faaa8a152fc20f9305417d589adc93a6a 100644 (file)
@@ -60,6 +60,8 @@ 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");
 
@@ -194,6 +196,8 @@ 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;
@@ -353,7 +357,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(NULL, request, server_cs, UNLANG_TOP_FRAME);
+       unlang_call_push(&result, request, server_cs, UNLANG_TOP_FRAME);
 
        return request;
 }