From: Alan T. DeKok Date: Mon, 14 Nov 2016 19:29:50 +0000 (-0500) Subject: return good value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c8a5028fd968185183924833d373bd3caf4aaac;p=thirdparty%2Ffreeradius-server.git return good value --- diff --git a/src/util/channel.c b/src/util/channel.c index f44f4e6bffb..8ea30e52e36 100644 --- a/src/util/channel.c +++ b/src/util/channel.c @@ -497,8 +497,8 @@ fr_channel_event_t fr_channel_service_kevent(int kq, struct kevent const *kev, f rad_assert(kev->ident == FR_CHANNEL_SIGNAL_WORKER_SLEEPING); /* - * "worker sleeping" signals are only allowed for signals - * from the worker to the master thread. + * "worker sleeping" signals are only allowed from the + * worker to the master thread. */ rad_assert(kq == ch->end[FROM_WORKER].kq); @@ -506,7 +506,7 @@ fr_channel_event_t fr_channel_service_kevent(int kq, struct kevent const *kev, f * Run-time sanity check. */ end = &ch->end[FROM_WORKER]; - if (end->kq != kq) return -1; + if (end->kq != kq) return FR_CHANNEL_ERROR; end = &ch->end[TO_WORKER];