]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct UB_EV_PERSIST check in _unbound_io_service_writable() (CID #1469157) (#4466)
authorJames Jones <jejones3141@gmail.com>
Mon, 25 Apr 2022 15:23:12 +0000 (10:23 -0500)
committerGitHub <noreply@github.com>
Mon, 25 Apr 2022 15:23:12 +0000 (10:23 -0500)
src/modules/rlm_unbound/io.c

index 050946e4912145708fc45bd8342fd676a322164c..415ff3b29becf4f18fd59d05016a3c1257114fa2 100644 (file)
@@ -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);