From: Kurt Zeilenga Date: Mon, 30 Dec 2002 01:02:31 +0000 (+0000) Subject: Fix access_allowed() error checking bug X-Git-Tag: NO_SLAP_OP_BLOCKS~629 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed471a4d53b9bcd2cc89410743ffb4bd58b5fc05;p=openldap Fix access_allowed() error checking bug --- diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index f6ca46da1a..bc7f6dc0cc 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -187,14 +187,15 @@ retry: /* transaction retry */ goto done; } + /* check write on old entry */ + rc = access_allowed( be, conn, op, e, entry, NULL, ACL_WRITE, NULL ); + switch( opinfo.boi_err ) { case DB_LOCK_DEADLOCK: case DB_LOCK_NOTGRANTED: goto retry; } - /* check write on old entry */ - rc = access_allowed( be, conn, op, e, entry, NULL, ACL_WRITE, NULL ); if ( ! rc ) { #ifdef NEW_LOGGING LDAP_LOG ( OPERATION, ERR,