Commit 0e5870cd authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2348 additional check from HEAD

parent 04382bb2
......@@ -480,6 +480,12 @@ idl_insert_key(
/* select the block to try inserting into *//* XXX linear search XXX */
for ( i = 0; !ID_BLOCK_NOID(idl, i) && id > ID_BLOCK_ID(idl, i); i++ )
; /* NULL */
/* 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--;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment