--- net-snmp-5.2.3.orig/snmplib/container_binary_array.c 2006-12-20 16:23:12.000000000 +0100
+++ net-snmp-5.2.3/snmplib/container_binary_array.c 2006-12-20 16:25:22.000000000 +0100
@@ -338,6 +338,16 @@
void *new_data; /* Used for * a) extending the data table
* * b) the next entry to use */
+ /*
+ * check for duplicates
+ */
+
+ new_data = netsnmp_binary_array_get(c, entry, 1);
+ if (NULL != new_data) {
+ DEBUGMSGTL(("container","not inserting duplicate key\n"));
+ return -1;
+ }
+
if (t->max_size <= t->count) {
/*
* Table is full, so extend it to double the size