]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Shorten time operation_mutex is locked
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 12 Jul 2017 10:58:32 +0000 (11:58 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
servers/lloadd/operation.c

index 56deb0ac657a679c8bbd44fef434fa8d936b1b51..425cf022653164d641ce415991aec0aebb98c392 100644 (file)
@@ -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;