From: Max Khon Date: Sat, 23 Jul 2022 11:45:32 +0000 (+0300) Subject: Don't do EV_SET for fr_event_fd_noop (#4626) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=789e67cacea50d2b01a18166616375066eeea9bf;p=thirdparty%2Ffreeradius-server.git Don't do EV_SET for fr_event_fd_noop (#4626) --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index 27274ef43c4..1b7ccdf8e63 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -690,7 +690,7 @@ static ssize_t fr_event_build_evset( } new_func = *(fr_event_fd_cb_t const *)((uint8_t const *)new + map->offset); - if (new_func) { + if (new_func && (new_func != fr_event_fd_noop)) { EVENT_DEBUG("\t%s curr set (%p)", map->name, new_func); current_fflags |= map->fflags; has_current_func = true;