]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check both ends of the channel, not the same end twice
authorAlan T. DeKok <aland@freeradius.org>
Mon, 16 Dec 2019 19:04:56 +0000 (14:04 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 16 Dec 2019 19:04:56 +0000 (14:04 -0500)
src/lib/io/channel.c

index c38a61e1132448b363dfffd3ce43efe0122ba2a1..7d75095acc12519fc266b20791ea80a6e17b8b9a 100644 (file)
@@ -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