From: Alan T. DeKok Date: Mon, 16 Dec 2019 19:04:56 +0000 (-0500) Subject: check both ends of the channel, not the same end twice X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe3fc8dd48885e8f63550d9ee4254201ca0e233a;p=thirdparty%2Ffreeradius-server.git check both ends of the channel, not the same end twice --- diff --git a/src/lib/io/channel.c b/src/lib/io/channel.c index c38a61e1132..7d75095acc1 100644 --- a/src/lib/io/channel.c +++ b/src/lib/io/channel.c @@ -812,7 +812,7 @@ int fr_channel_service_kevent(fr_channel_t *ch, fr_control_t *c, UNUSED struct k */ bool fr_channel_active(fr_channel_t *ch) { - return atomic_load(&ch->end[TO_REQUESTOR].active) && atomic_load(&ch->end[TO_REQUESTOR].active); + return atomic_load(&ch->end[TO_REQUESTOR].active) && atomic_load(&ch->end[TO_RESPONDER].active); } /** Signal a responder that the channel is closing