From 9568a013a8793ab5eddc2acb5c8027fb5a757a0c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 16 Jul 1999 00:16:54 +0000 Subject: [PATCH] Backend lock wasn't being released properly. --- servers/slapd/back-bdb2/modify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ); -- 2.39.5