]> git.sur5r.net Git - openldap/commitdiff
Fix access_allowed() error checking bug
authorKurt Zeilenga <kurt@openldap.org>
Mon, 30 Dec 2002 01:02:31 +0000 (01:02 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 30 Dec 2002 01:02:31 +0000 (01:02 +0000)
servers/slapd/back-bdb/modrdn.c

index f6ca46da1a0fda2df8c480d7ced0cf4bfb4c92de..bc7f6dc0cc61addb53502f2e2321738f7275bbbc 100644 (file)
@@ -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,