Skip to content

Commit

Permalink
Always set te->tt
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 24, 2020
1 parent 661bec7 commit 7fb2262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/rlm_radius/track.c
Expand Up @@ -138,10 +138,10 @@ radius_track_entry_t *radius_track_entry_alloc(radius_track_t *tt, REQUEST *requ
* Allocate a new one, and insert it into the appropriate subtree.
*/
te = talloc_zero(tt, radius_track_entry_t);
te->tt = tt;
te->id = tt->next_id;

done:
te->tt = tt;
te->request = request;
te->rctx = rctx;
te->code = code;
Expand All @@ -165,6 +165,8 @@ int radius_track_update(radius_track_entry_t *te, uint8_t const *vector)
{
radius_track_t *tt = te->tt;

rad_assert(tt);

/*
* The authentication vector may have changed.
*/
Expand Down

0 comments on commit 7fb2262

Please sign in to comment.