From: Arran Cudbard-Bell Date: Wed, 20 Feb 2013 14:41:39 +0000 (-0500) Subject: Revert "Unlock mutex when we find a matching connection" X-Git-Tag: release_3_0_0_beta1~988 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64e408846f20715a65c7bcf6e5613b477437ccb8;p=thirdparty%2Ffreeradius-server.git Revert "Unlock mutex when we find a matching connection" This reverts commit 84fa208a76fc6415d4e5f4c6cb4f1101799b3c89. --- diff --git a/src/main/connection.c b/src/main/connection.c index 48b2b473194..3f358948c44 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -456,13 +456,10 @@ static fr_connection_t *fr_connection_find(fr_connection_pool_t *pool, void *con * order to find top of the parent structure. */ for (this = pool->head; this != NULL; this = this->next) { - if (this->connection == conn) { - pthread_mutex_unlock(&pool->mutex); - return this; - } + if (this->connection == conn) return this; } - + pthread_mutex_unlock(&pool->mutex); return NULL; }