]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
formatting
authorAlan T. DeKok <aland@freeradius.org>
Thu, 29 Jul 2021 10:58:15 +0000 (06:58 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 29 Jul 2021 11:23:16 +0000 (07:23 -0400)
src/main/connection.c

index d182a07f071271f70d8c919c6931c5f7d8fb9148..436bea9405a8ba5e0d5a273fb3f0dc4f40eecae3 100644 (file)
@@ -686,13 +686,15 @@ static int fr_connection_pool_check(fr_connection_pool_t *pool)
                 *      delete all of them.
                 */
                spawn = 0;
+
                /*
                 *      But if the pool size is already "min", we
                 *      don't delete them.
                 */
-               if ((pool->num + pool->pending) == pool->min) {
+               if ((pool->num + pool->pending) >= pool->min) {
                        extra = 0;
                }
+
                /* Otherwise, leave extra alone from above */
 
        /*