mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix logic error in slap_mods2entry()
This commit is contained in:
parent
40ec064b66
commit
30610c6f70
@ -395,12 +395,15 @@ slap_mods2entry(
|
||||
const char **text,
|
||||
char *textbuf, size_t textlen )
|
||||
{
|
||||
Attribute **tail = &(*e)->e_attrs;
|
||||
Attribute **tail;
|
||||
|
||||
if ( initial ) {
|
||||
assert( *tail == NULL );
|
||||
assert( (*e)->e_attrs == NULL );
|
||||
}
|
||||
|
||||
for ( tail = &(*e)->e_attrs; *tail != NULL; tail = &(*tail)->a_next )
|
||||
;
|
||||
|
||||
*text = textbuf;
|
||||
|
||||
for( ; mods != NULL; mods = mods->sml_next ) {
|
||||
|
Loading…
Reference in New Issue
Block a user