]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
track: We still probably want this check for non-debug builds
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Apr 2020 03:09:58 +0000 (22:09 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Apr 2020 03:09:58 +0000 (22:09 -0500)
src/modules/rlm_radius/track.c

index 32bc36e3e74a8e6fe9a73ace00b573154fade598..0be1a6f8ffbdda71f168143d363f384c483be0e2 100644 (file)
@@ -115,7 +115,7 @@ int radius_track_entry_reserve(radius_track_entry_t **te_out,
 {
        radius_track_entry_t *te;
 
-       rad_assert(!*te_out);   /* Must be NULL */
+       if (!fr_cond_assert_msg(!*te_out, "Expected tracking entry to be NULL")) return;
 
 retry:
        te = fr_dlist_head(&tt->free_list);