Fix access_allowed() error checking bug

This commit is contained in:
Kurt Zeilenga 2002-12-30 01:02:31 +00:00
parent f148506bf6
commit ed471a4d53

View 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,