mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#2217 fix option sorting
This commit is contained in:
parent
13aa48e47a
commit
ade6b8b750
@ -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 New Issue
Block a user