]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
skip listeners where all IDs are used
authorAlan T. DeKok <aland@freeradius.org>
Thu, 1 Apr 2021 20:37:24 +0000 (16:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 2 Apr 2021 19:14:45 +0000 (15:14 -0400)
src/main/listen.c

index f470047d96a284e276d04d53d3c452db505d1976..f2820b195407e18641533144b11d9d3e656bdd64 100644 (file)
@@ -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;
                }