remove the old attribute from the value tree, too
authoraland <aland>
Thu, 1 Mar 2007 12:58:01 +0000 (12:58 +0000)
committeraland <aland>
Thu, 1 Mar 2007 12:58:01 +0000 (12:58 +0000)
src/lib/dict.c

index 00e0c56..d04b0d0 100644 (file)
@@ -508,6 +508,8 @@ int dict_addattr(const char *name, int vendor, int type, int value,
                }
 
 
+               lrad_hash_table_delete(attributes_byvalue, a);
+
                if (!lrad_hash_table_replace(attributes_byname, attr)) {
                        librad_log("dict_addattr: Internal error storing attribute %s", name);
                        free(attr);