]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check result of disarming the child
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Mar 2025 02:34:35 +0000 (20:34 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Mar 2025 04:19:22 +0000 (22:19 -0600)
src/lib/util/timer.c

index 6688238e972708840a86ae3266f5b82fe0eaf6ed..e150bd7a416ccc41c59149f276156373d3f0f72c 100644 (file)
@@ -271,7 +271,7 @@ static inline CC_HINT(always_inline) int timer_list_parent_update(fr_timer_list_
                /*
                 *      Disables the timer in the parent, does not free the memory
                 */
-               if (tl->parent) fr_timer_disarm(tl->parent_ev);
+               if (tl->parent) if (unlikely(fr_timer_disarm(tl->parent_ev) < 0)) return -1;
                return 0;
        }