]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10185 autogroup: fix missing mutex_unlock
authorHoward Chu <hyc@openldap.org>
Tue, 19 Mar 2024 16:20:56 +0000 (16:20 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 19 Mar 2024 17:17:26 +0000 (17:17 +0000)
Broken in 95e7a7be16a3fc751f1ad4c210e69c37ad96f69b

contrib/slapd-modules/autogroup/autogroup.c

index 2e1829be6e012533b22eed8f73d0815b22c98a87..db0ee4f3fa8c698ddb53dc32fbfd3ea596b4ff5b 100644 (file)
@@ -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. */