mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-01 03:19:27 -05:00
Check errcode from dn2entry before using ei
This commit is contained in:
parent
d567be70eb
commit
a59c109109
1 changed files with 2 additions and 2 deletions
|
|
@ -345,8 +345,6 @@ retry: /* transaction retry */
|
|||
rs->sr_err = bdb_dn2entry( op, ltid, &op->o_req_ndn, &ei, 1,
|
||||
locker, &lock );
|
||||
|
||||
e = ei->bei_e;
|
||||
|
||||
if ( rs->sr_err != 0 ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
LDAP_XSTRING(bdb_modify) ": dn2entry failed (%d)\n",
|
||||
|
|
@ -380,6 +378,8 @@ retry: /* transaction retry */
|
|||
}
|
||||
}
|
||||
|
||||
e = ei->bei_e;
|
||||
|
||||
/* acquire and lock entry */
|
||||
/* FIXME: dn2entry() should return non-glue entry */
|
||||
if (( rs->sr_err == DB_NOTFOUND ) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue