mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7144 fix crash replicating modDN if oldRDN not present
This commit is contained in:
parent
2e9f1f93c8
commit
d2958a2a4e
@ -4135,7 +4135,10 @@ dn_callback(
|
||||
dni->oldDesc = ad;
|
||||
for ( oldpos=0, a=rs->sr_entry->e_attrs;
|
||||
a && a->a_desc != ad; oldpos++, a=a->a_next );
|
||||
dni->oldNcount = a->a_numvals;
|
||||
/* a should not be NULL but apparently it happens.
|
||||
* ITS#7144
|
||||
*/
|
||||
dni->oldNcount = a ? a->a_numvals : 0;
|
||||
for ( newpos=0, a=dni->new_entry->e_attrs;
|
||||
a && a->a_desc != ad; newpos++, a=a->a_next );
|
||||
if ( !a || oldpos != newpos || attr_valfind( a,
|
||||
|
Loading…
Reference in New Issue
Block a user