]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Search in the correct destructor list
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 4 Jan 2022 20:45:11 +0000 (14:45 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 4 Jan 2022 20:45:11 +0000 (14:45 -0600)
src/lib/util/atexit.c

index 9d2361f76146c2be11582852143dd4a6e664ce32..17642e4f76ed8a1872ccac2a86cf7446e59c8b8c 100644 (file)
@@ -353,7 +353,7 @@ int fr_atexit_trigger(fr_atexit_t func)
         *      Iterate over the list of thread local destructor
         *      lists.
         */
-       while ((e = fr_dlist_next(&fr_atexit_global->head, e))) {
+       while ((e = fr_dlist_next(&fr_atexit_threads->head, e))) {
                if (!e->func) continue; /* thread already joined */
 
                list = talloc_get_type_abort(e->uctx, fr_atexit_list_t);