From: Arran Cudbard-Bell Date: Thu, 6 Jul 2017 15:14:24 +0000 (-0400) Subject: Should be a check in non-debugging builds too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd989f11e5425a3b8fd697eb888325b03a4f7feb;p=thirdparty%2Ffreeradius-server.git Should be a check in non-debugging builds too --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index 6446cc3d6d0..4389b4f62df 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -473,7 +473,7 @@ int fr_event_timer_delete(fr_event_list_t *el, fr_event_timer_t **ev_p) if (!*ev_p) return 0; - rad_assert(talloc_parent(*ev_p) == el); + if (!fr_cond_assert(talloc_parent(*ev_p) == el)) return -1; ret = talloc_free(*ev_p); if (ret == 0) *ev_p = NULL;