mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-29 18:09:26 -05:00
ITS#7231 fix idl_append when b has only 1 element
This commit is contained in:
parent
e6a25b2db6
commit
494c6fa37f
1 changed files with 6 additions and 1 deletions
|
|
@ -1377,7 +1377,12 @@ int bdb_idl_append( ID *a, ID *b )
|
|||
tmp = a[1];
|
||||
a[1] = b[1];
|
||||
} else {
|
||||
tmp = b[1];
|
||||
if (b[1] < ida) {
|
||||
tmp = a[a[0]];
|
||||
a[a[0]] = b[1];
|
||||
} else {
|
||||
tmp = b[1];
|
||||
}
|
||||
}
|
||||
a[0]++;
|
||||
a[a[0]] = tmp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue