From: Alan T. DeKok Date: Thu, 1 Feb 2024 17:20:50 +0000 (-0500) Subject: set "ours" properly. Hopefully the last commit X-Git-Tag: release_3_2_4~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88e6cdf6679ff62fda2fe48eaada548a87d5249d;p=thirdparty%2Ffreeradius-server.git set "ours" properly. Hopefully the last commit --- diff --git a/src/main/state.c b/src/main/state.c index ee9d71dba0..2d87d65846 100644 --- a/src/main/state.c +++ b/src/main/state.c @@ -486,6 +486,8 @@ static state_entry_t *fr_state_entry_create(fr_state_t *state, REQUEST *request, entry->state[8] = entry->state[2] ^ (((uint32_t) HEXIFY(RADIUSD_VERSION)) & 0xff); entry->state[10] = entry->state[2] ^ ((((uint32_t) HEXIFY(RADIUSD_VERSION)) >> 8) & 0xff); entry->state[12] = entry->state[2] ^ ((((uint32_t) HEXIFY(RADIUSD_VERSION)) >> 16) & 0xff); + + entry->ours = true; } /* @@ -493,8 +495,6 @@ static state_entry_t *fr_state_entry_create(fr_state_t *state, REQUEST *request, */ if (!old->opaque) state_entry_free(state, old); - entry->ours = true; - } else if (!vp) { /* * 16 octets of randomness should be enough to