From: Alan T. DeKok Date: Sat, 3 Dec 2016 17:58:01 +0000 (-0500) Subject: use correct field X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9b17d3fd95fb5d240593875b0ea3602bdcf730;p=thirdparty%2Ffreeradius-server.git use correct field --- diff --git a/src/util/channel.c b/src/util/channel.c index 0cdfea3ec8c..b015405470b 100644 --- a/src/util/channel.c +++ b/src/util/channel.c @@ -130,6 +130,12 @@ fr_channel_t *fr_channel_create(TALLOC_CTX *ctx, int kq_master, int kq_worker) return NULL; } + num_events = fr_channel_add_kevent_receiver(ch, events, 4); + if (kevent(kq_master, events, num_events, NULL, 0, NULL) < 0) { + talloc_free(ch); + return NULL; + } + return ch; } @@ -529,7 +535,7 @@ fr_channel_event_t fr_channel_service_kevent(int kq, struct kevent const *kev, f * Each end can signal the channel to close. */ if (kev->ident == FR_CHANNEL_SIGNAL_CLOSE) { - rad_assert(kq == ch->end[kev->fflags].kq); + rad_assert(kq == ch->end[kev->data].kq); *p_channel = ch; return FR_CHANNEL_CLOSE;