From: Alan T. DeKok Date: Wed, 15 Mar 2023 20:54:50 +0000 (-0400) Subject: fr_io_connection_alloc() closes the FD. CID #1522023 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f1969b24067b8507a26548d9ae019924b5fced4;p=thirdparty%2Ffreeradius-server.git fr_io_connection_alloc() closes the FD. CID #1522023 --- diff --git a/src/lib/io/master.c b/src/lib/io/master.c index cd434d4d45e..d629eec299c 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -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;