Commit 13e51608f0cc4d543d573a2194077091608875c5

Stefan Sperling 2018-09-15T12:23:14

fix bug where duplicates were being added to object idset

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/object_idset.c b/lib/object_idset.c
index 75d0573..a2cbecc 100644
--- a/lib/object_idset.c
+++ b/lib/object_idset.c
@@ -140,11 +140,6 @@ got_object_idset_add(void **existing_data,
 			set->nelem[i]++;
 			set->totelem++;
 			return NULL;
-		} else if (got_object_id_cmp(&new->id, &next->id) > 0) {
-			TAILQ_INSERT_BEFORE(next, new, entry);
-			set->nelem[i]++;
-			set->totelem++;
-			return NULL;
 		}
 	}