From: Nick Porter Date: Fri, 2 Aug 2024 08:53:29 +0000 (+0100) Subject: Ensure fd event removed when removing listener X-Git-Tag: release_3_2_6~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79acd3255acc4dd8f2ceb7f53663619632bf4eb4;p=thirdparty%2Ffreeradius-server.git Ensure fd event removed when removing listener --- diff --git a/src/main/process.c b/src/main/process.c index acc1921752f..04a4fdf06bb 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -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; /*