From: Arran Cudbard-Bell Date: Fri, 1 Nov 2019 14:24:32 +0000 (-0600) Subject: Don't print messages if the FD is the same as the one already set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834fce6ba09ab8588af20914a5978094015c0076;p=thirdparty%2Ffreeradius-server.git Don't print messages if the FD is the same as the one already set --- diff --git a/src/modules/rlm_unbound/io.c b/src/modules/rlm_unbound/io.c index bd7f664c735..983397e97ee 100644 --- a/src/modules/rlm_unbound/io.c +++ b/src/modules/rlm_unbound/io.c @@ -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;