mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#2217 fix option sorting
This commit is contained in:
parent
13aa48e47a
commit
ade6b8b750
1 changed files with 4 additions and 4 deletions
|
|
@ -222,10 +222,10 @@ int slap_bv2ad(
|
|||
} else if ( rc > 0 ||
|
||||
( rc == 0 && (unsigned)optlen > tags[i].bv_len ))
|
||||
{
|
||||
AC_MEMCPY( &tags[i+1], &tags[i],
|
||||
(ntags-i)*sizeof(struct berval) );
|
||||
tags[i].bv_val = opt;
|
||||
tags[i].bv_len = optlen;
|
||||
AC_MEMCPY( &tags[i+2], &tags[i+1],
|
||||
(ntags-i-1)*sizeof(struct berval) );
|
||||
tags[i+1].bv_val = opt;
|
||||
tags[i+1].bv_len = optlen;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue