]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set "ours" properly. Hopefully the last commit
authorAlan T. DeKok <aland@freeradius.org>
Thu, 1 Feb 2024 17:20:50 +0000 (12:20 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 1 Feb 2024 17:20:50 +0000 (12:20 -0500)
src/main/state.c

index ee9d71dba0814ba68a1967a058efdb4b86b5bf60..2d87d658460c98e8e534e48fa98fa86bd53befea 100644 (file)
@@ -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