From: Ondřej Kuzník Date: Wed, 12 Jul 2017 10:58:32 +0000 (+0100) Subject: Shorten time operation_mutex is locked X-Git-Tag: OPENLDAP_REL_ENG_2_5_1ALPHA~18^2~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532fc1bf98394b825e7bc9fa3ff9707a64a497da;p=thirdparty%2Fopenldap.git Shorten time operation_mutex is locked --- diff --git a/servers/lloadd/operation.c b/servers/lloadd/operation.c index 56deb0ac65..425cf02265 100644 --- a/servers/lloadd/operation.c +++ b/servers/lloadd/operation.c @@ -668,10 +668,10 @@ operation_send_reject( * client is dead, it must have been the upstream */ assert( c ); CONNECTION_LOCK(c); + ldap_pvt_thread_mutex_unlock( &operation_mutex ); Debug( LDAP_DEBUG_TRACE, "operation_send_reject: " "not sending msgid=%d, client connid=%lu is dead\n", op->o_client_msgid, op->o_client_connid ); - ldap_pvt_thread_mutex_unlock( &operation_mutex ); operation_destroy_from_upstream( op ); UPSTREAM_UNLOCK_OR_DESTROY(c); return;