From 16c30f14bfdb0171cca0ebae88c85b4ce9534b66 Mon Sep 17 00:00:00 2001 From: Alan DeKok Date: Fri, 24 May 2024 08:19:40 -0400 Subject: [PATCH] =?utf8?q?Revert=20"Move=20fr=5Fassert()=20check=20of=20mu?= =?utf8?q?tex-guarded=20data=20after=20the=20lock=20(CID=20#158=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit 56fd7e0b4f1779505d64ce6d14a447a5aacbb2b3. --- src/lib/io/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/io/master.c b/src/lib/io/master.c index 8772931334..9165d9e066 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -2079,13 +2079,13 @@ static void client_expiry_timer(fr_event_list_t *el, fr_time_t now, void *uctx) } fr_assert(!connection); + fr_assert(client->ht != NULL); /* * Find out how many connections are using this * client. */ pthread_mutex_lock(&client->mutex); - fr_assert(client->ht != NULL); connections = fr_hash_table_num_elements(client->ht); pthread_mutex_unlock(&client->mutex); -- 2.47.2