From c932ad19f0946ceb766899e110a5f4fa5ffde03a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 19 Mar 2024 16:20:56 +0000 Subject: [PATCH] ITS#10185 autogroup: fix missing mutex_unlock Broken in 95e7a7be16a3fc751f1ad4c210e69c37ad96f69b --- contrib/slapd-modules/autogroup/autogroup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/slapd-modules/autogroup/autogroup.c b/contrib/slapd-modules/autogroup/autogroup.c index 2e1829be6e..db0ee4f3fa 100644 --- a/contrib/slapd-modules/autogroup/autogroup.c +++ b/contrib/slapd-modules/autogroup/autogroup.c @@ -998,8 +998,10 @@ autogroup_del_entry_cb( Operation *op, SlapReply *rs ) ldap_pvt_thread_mutex_unlock( &age->age_mutex ); } - if ( !aa->e ) + if ( !aa->e ) { + ldap_pvt_thread_mutex_unlock( &agi->agi_mutex ); goto done; + } /* Check if the entry matches any of the groups. If yes, we can delete the entry from that group. */