]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check for accept_fd <0, not <= 0. CID #1445242
authorAlan T. DeKok <aland@freeradius.org>
Fri, 24 May 2019 17:27:15 +0000 (13:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 24 May 2019 17:27:15 +0000 (13:27 -0400)
src/lib/io/master.c

index b82e18ed76b8ab31ca9753ec33afb3e89b80ba48..2ccdd4febd01b18f81d86c65cd247ff07c68f801 100644 (file)
@@ -1269,7 +1269,7 @@ do_read:
 
                } else if (inst->dynamic_clients) {
                        if (inst->max_clients && (fr_heap_num_elements(thread->alive_clients) >= inst->max_clients)) {
-                               if (accept_fd <= 0) {
+                               if (accept_fd < 0) {
                                        DEBUG("proto_%s - ignoring packet from client IP address %pV - "
                                              "too many dynamic clients are defined",
                                              inst->app_io->name, fr_box_ipaddr(address.src_ipaddr));