]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fr_io_connection_alloc() closes the FD. CID #1522023
authorAlan T. DeKok <aland@freeradius.org>
Wed, 15 Mar 2023 20:54:50 +0000 (16:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 15 Mar 2023 20:54:50 +0000 (16:54 -0400)
src/lib/io/master.c

index cd434d4d45efea1217a3fd9ff803c8ac95873736..d629eec299cb76116869e89ddf86022308a24ede 100644 (file)
@@ -1553,7 +1553,6 @@ have_client:
        if (accept_fd >= 0) {
                if (!fr_io_connection_alloc(inst, thread, client, accept_fd, &address, NULL)) {
                        DEBUG("Failed to allocate connection from client %s.", client->radclient->shortname);
-                       close(accept_fd);
                }
 
                return 0;