ITS#2348, additional check to prevent re-inserting IDs that are

already present. Hopefully the final fix...
This commit is contained in:
Howard Chu 2003-03-12 10:45:00 +00:00
parent 6694db8fd4
commit 97a805415d

View file

@ -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--;