]> 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>
Thu, 22 Jul 2021 13:55:22 +0000 (09:55 -0400)
src/main/listen.c

index f2a23169f6a61e304fce8adee770cd62a6caa0eb..35ece987c157ecad8a5fb86afb2614bae221655a 100644 (file)
@@ -3878,8 +3878,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;
                }