From: James Jones Date: Mon, 25 Apr 2022 15:23:12 +0000 (-0500) Subject: Correct UB_EV_PERSIST check in _unbound_io_service_writable() (CID #1469157) (#4466) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e69b2ad785ea9186a008e270a747bb52186fba;p=thirdparty%2Ffreeradius-server.git Correct UB_EV_PERSIST check in _unbound_io_service_writable() (CID #1469157) (#4466) --- diff --git a/src/modules/rlm_unbound/io.c b/src/modules/rlm_unbound/io.c index 050946e4912..415ff3b29be 100644 --- a/src/modules/rlm_unbound/io.c +++ b/src/modules/rlm_unbound/io.c @@ -202,7 +202,7 @@ static void _unbound_io_service_writable(fr_event_list_t *el, int fd, UNUSED int /* * Remove IO events */ - if (!(ev->events | UB_EV_PERSIST)) { + if (!(ev->events & UB_EV_PERSIST)) { DEBUG4("unbound event %p - UB_EV_PERSIST not set - Removing events for FD %i", ev, ev->fd); if (fr_event_fd_delete(el, ev->fd, FR_EVENT_FILTER_IO) < 0) { PERROR("unbound event %p - De-registration failed for FD %i", ev, ev->fd);