port fix from cvs head
authoraland <aland>
Mon, 12 Mar 2007 12:28:38 +0000 (12:28 +0000)
committeraland <aland>
Mon, 12 Mar 2007 12:28:38 +0000 (12:28 +0000)
src/lib/dict.c

index df11f83..74e5c2d 100644 (file)
@@ -498,6 +498,7 @@ 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);