]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't walk off the end of the cleanup list
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 28 Jun 2021 23:27:45 +0000 (00:27 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 28 Jun 2021 23:28:54 +0000 (00:28 +0100)
src/main/state.c

index 08f21604afb25ad681456fd922cbff0a6b6721a9..7d1dbae6ba5d36215838afa2c49523ac2cf71548 100644 (file)
@@ -332,6 +332,7 @@ static state_entry_t *fr_state_cleanup_find(fr_state_t *state)
                 *      We can add it to the cleanup list.
                 */
                state_entry_unlink(state, entry);
+               entry->next = NULL;
                (*tail) = entry;
                tail = &entry->next;
        }