]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure fd event removed when removing listener
authorNick Porter <nick@portercomputing.co.uk>
Fri, 2 Aug 2024 08:53:29 +0000 (09:53 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 2 Aug 2024 08:53:29 +0000 (09:53 +0100)
src/main/process.c

index acc1921752f21c7477031f7760357ef036de9226..04a4fdf06bb0eb708df4569beaf704c693ffbef5 100644 (file)
@@ -5755,7 +5755,6 @@ static void event_new_fd(rad_listen_t *this)
                        return;
                }
 
-               fr_event_fd_delete(el, 0, this->fd);
                this->status = RAD_LISTEN_STATUS_REMOVE_NOW;
        }
 #endif /* WITH_TCP */
@@ -5831,6 +5830,7 @@ static void event_new_fd(rad_listen_t *this)
        if (this->status == RAD_LISTEN_STATUS_REMOVE_NOW) {
                int devnull;
 
+               fr_event_fd_delete(el, 0, this->fd);
                this->dead = true;
 
                /*