]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
debug-only check
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 Dec 2016 16:12:37 +0000 (11:12 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 5 Dec 2016 16:12:37 +0000 (11:12 -0500)
src/util/channel.c

index 85b18cfb6d1a1b38fafd53e0ef11fd93d3835be8..5d5aee41921341517427f53efff41bf094d6a271 100644 (file)
@@ -572,11 +572,13 @@ fr_channel_event_t fr_channel_service_kevent(int kq, struct kevent const *kev, f
         */
        rad_assert(kq == ch->end[FROM_WORKER].kq);
 
+#ifndef NDEBUG
        /*
         *      Run-time sanity check.
         */
        end = &ch->end[FROM_WORKER];
        if (end->kq != kq) return FR_CHANNEL_ERROR;
+#endif
 
        end = &ch->end[TO_WORKER];