mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 13:09:42 -05:00
ITS#2348, additional check to prevent re-inserting IDs that are
already present. Hopefully the final fix...
This commit is contained in:
parent
6694db8fd4
commit
97a805415d
1 changed files with 5 additions and 0 deletions
|
|
@ -560,6 +560,11 @@ idl_insert_key(
|
|||
if (ID_BLOCK_ID(idl, i) < id)
|
||||
i++;
|
||||
#endif
|
||||
/* The ID already exists in the IDL, no insert needed */
|
||||
if (ID_BLOCK_ID(idl, i) == id) {
|
||||
idl_free( idl );
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( i != 0 ) {
|
||||
i--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue