]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't do EV_SET for fr_event_fd_noop (#4626)
authorMax Khon <fjoe@samodelkin.net>
Sat, 23 Jul 2022 11:45:32 +0000 (14:45 +0300)
committerGitHub <noreply@github.com>
Sat, 23 Jul 2022 11:45:32 +0000 (18:45 +0700)
src/lib/util/event.c

index 27274ef43c4d09343f2ec1ae0ee828a2f633ff1b..1b7ccdf8e63c61bae5c56115b3c48a0db79f6b07 100644 (file)
@@ -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;