From: Alan T. DeKok Date: Thu, 1 Apr 2021 20:37:24 +0000 (-0400) Subject: skip listeners where all IDs are used X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7387c7022836afdab008bffe1a22000e83e91b55;p=thirdparty%2Ffreeradius-server.git skip listeners where all IDs are used --- diff --git a/src/main/listen.c b/src/main/listen.c index f470047d96..f2820b1954 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -3841,8 +3841,14 @@ int listen_coa_find(REQUEST *request, char const *key) for (this = coa_key->first; this != NULL; this = this->next_key) { - if (!found && (this->num_ids_used < 256)) { - found = this; + if (!found) { + if (this->num_ids_used < 256) { + found = this; + } + + /* + * Skip listeners which have all used IDs. + */ continue; }