From: Matthew Newton Date: Mon, 28 Jun 2021 23:27:45 +0000 (+0100) Subject: don't walk off the end of the cleanup list X-Git-Tag: release_3_0_24~189 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d4af808a7b25c307d53f3e99e4727b89b110f8c;p=thirdparty%2Ffreeradius-server.git don't walk off the end of the cleanup list --- diff --git a/src/main/state.c b/src/main/state.c index 08f21604af..7d1dbae6ba 100644 --- a/src/main/state.c +++ b/src/main/state.c @@ -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; }