From: Arran Cudbard-Bell Date: Thu, 9 Apr 2020 02:34:28 +0000 (-0500) Subject: track: Disallow double allocations X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad1ff58f2545db1e23bca2f4f7be08f431944da;p=thirdparty%2Ffreeradius-server.git track: Disallow double allocations --- diff --git a/src/modules/rlm_radius/track.c b/src/modules/rlm_radius/track.c index 1505af68340..32bc36e3e74 100644 --- a/src/modules/rlm_radius/track.c +++ b/src/modules/rlm_radius/track.c @@ -115,6 +115,8 @@ int radius_track_entry_reserve(radius_track_entry_t **te_out, { radius_track_entry_t *te; + rad_assert(!*te_out); /* Must be NULL */ + retry: te = fr_dlist_head(&tt->free_list); if (te) {