]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "Remove closed connections from the parent's tracking list"
authorNick Porter <nick@portercomputing.co.uk>
Thu, 17 Aug 2023 17:13:12 +0000 (18:13 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 17 Aug 2023 17:13:12 +0000 (18:13 +0100)
This reverts commit bac1129ed8dab05a976fd97cbcd6df98276104ff.

src/lib/io/master.c

index b17942d4999e1b203a59d574c0d9e9cb9a7821f9..6ea24d45d2c57c9421bab003c7645f31916cef90 100644 (file)
@@ -2574,7 +2574,6 @@ static int mod_close(fr_listen_t *li)
        fr_io_instance_t const *inst;
        fr_io_connection_t *connection;
        fr_listen_t *child;
-       fr_io_client_t *parent;
 
        get_inst(li, &inst, NULL, &connection, &child);
 
@@ -2598,15 +2597,6 @@ static int mod_close(fr_listen_t *li)
        if (connection->client->pending) {
                TALLOC_FREE(connection->client->pending); /* for any pending packets */
        }
-
-       /*
-        *      Remove the connection from the parent's connection set
-        */
-       parent = connection->parent;
-       pthread_mutex_lock(&parent->mutex);
-       fr_hash_table_remove(parent->ht, connection);
-       pthread_mutex_unlock(&parent->mutex);
-
        talloc_free(connection->dl_inst);
 
        return 0;