mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix logic error in slap_mods2entry()
This commit is contained in:
parent
40ec064b66
commit
30610c6f70
1 changed files with 5 additions and 2 deletions
|
|
@ -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 a new issue