]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't print messages if the FD is the same as the one already set
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Nov 2019 14:24:32 +0000 (08:24 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Nov 2019 14:24:32 +0000 (08:24 -0600)
src/modules/rlm_unbound/io.c

index bd7f664c735fe55234d37ccf21c2d5193037905b..983397e97eeb90bc8a09060b41ece6fb0b5df219 100644 (file)
@@ -124,6 +124,8 @@ static void _unbound_io_event_fd_set(struct ub_event *ub_ev, int fd)
 
        rad_assert(!ev->active);                        /* must not be active */
 
+       if (fd == ev->fd) return;
+
        DEBUG4("unbound event %p - Changed FD from %i to %i", ev, ev->fd, fd);
 
        ev->fd = fd;