]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return good value
authorAlan T. DeKok <aland@freeradius.org>
Mon, 14 Nov 2016 19:29:50 +0000 (14:29 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 14 Nov 2016 19:29:50 +0000 (14:29 -0500)
src/util/channel.c

index f44f4e6bffb13767b5b5c68fb6847e48df5490a7..8ea30e52e36777852688fe820215a5edf1bb469f 100644 (file)
@@ -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];