From: Kurt Zeilenga Date: Fri, 16 Jul 1999 00:16:54 +0000 (+0000) Subject: Backend lock wasn't being released properly. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9568a013a8793ab5eddc2acb5c8027fb5a757a0c;p=openldap Backend lock wasn't being released properly. --- diff --git a/servers/slapd/back-bdb2/modify.c b/servers/slapd/back-bdb2/modify.c index 9e891e6a78..e158f6cdef 100644 --- a/servers/slapd/back-bdb2/modify.c +++ b/servers/slapd/back-bdb2/modify.c @@ -230,13 +230,17 @@ bdb2_back_modify( if ( (e = bdb2i_dn2entry_w( be, dn, &matched )) == NULL ) { send_ldap_result( conn, op, LDAP_NO_SUCH_OBJECT, matched, NULL ); + if ( matched != NULL ) { free( matched ); } - return( -1 ); + + ret = -1; + + } else { + ret = bdb2i_back_modify_internal( be, conn, op, dn, modlist, e ); } - ret = bdb2i_back_modify_internal( be, conn, op, dn, modlist, e ); (void) bdb2i_leave_backend_w( lock ); bdb2i_stop_timing( be->bd_info, time1, "MOD", conn, op );