]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clear prev, too?
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Jul 2021 11:21:13 +0000 (07:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 28 Jul 2021 11:21:13 +0000 (07:21 -0400)
src/main/state.c

index 7d1dbae6ba5d36215838afa2c49523ac2cf71548..f201d51202d32dfcbaac7ac1db664de6a6ef27fa 100644 (file)
@@ -332,7 +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;
+               entry->prev = entry->next = NULL;
                (*tail) = entry;
                tail = &entry->next;
        }