]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Only call _lua_fr_request_register if there is a request
authorNick Porter <nick@portercomputing.co.uk>
Thu, 1 May 2025 11:21:30 +0000 (12:21 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 2 May 2025 08:59:28 +0000 (09:59 +0100)
src/modules/rlm_lua/lua.c

index 73d511403a068359809c095a1d1ffb581c7f0ee3..909371fbc7e1a5d7f41b1fb393d26b6c4a8e905c 100644 (file)
@@ -820,7 +820,7 @@ unlang_action_t fr_lua_run(rlm_rcode_t *p_result, module_ctx_t const *mctx, requ
 
        ROPTIONAL(RDEBUG2, DEBUG2, "Calling %s() in interpreter %p", funcname, L);
 
-       _lua_fr_request_register(L, request);
+       if (request) _lua_fr_request_register(L, request);
 
        /*
         *      Get the function were going to be calling