mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix access_allowed() error checking bug
This commit is contained in:
parent
f148506bf6
commit
ed471a4d53
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue