]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
wire in a timestamp for Client-Lost so rlm_detail does not use 1970-01-01
authorAlexander Clouter <alex@digriz.org.uk>
Fri, 28 Jun 2024 13:24:13 +0000 (14:24 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Fri, 23 Aug 2024 12:46:12 +0000 (13:46 +0100)
src/main/state.c

index ab7a1802c6aec9d359fb5f6034cb284f719179cd..ecda4f80f07a376a39576585c0d4fef1ae0cf9f9 100644 (file)
@@ -270,6 +270,11 @@ static REQUEST *fr_state_cleanup_request(state_entry_t *entry)
        request->root = entry->request_root;
        request->handle = rad_postauth;
 
+       /*
+        *      xlat (and thus rlm_detail) needs something to work with
+        */
+       gettimeofday(&request->packet->timestamp, NULL);
+
        /*
         *      Move session-state VPS over, after first freeing the
         *      separately-parented state_ctx that was allocated along with the