Newer registrations replace old ones
authorAlan T. DeKok <aland@freeradius.org>
Wed, 29 Oct 2014 19:50:00 +0000 (15:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 29 Oct 2014 19:50:00 +0000 (15:50 -0400)
So that for HUP, the xlat's go to the new modules

src/main/xlat.c

index be32960..e423825 100644 (file)
@@ -575,7 +575,7 @@ int xlat_register(char const *name, RAD_XLAT_FUNC func, RADIUS_ESCAPE_STRING esc
                int i;
 #endif
 
-               xlat_root = rbtree_create(NULL, xlat_cmp, free, 0);
+               xlat_root = rbtree_create(NULL, xlat_cmp, free, RBTREE_FLAG_REPLACE);
                if (!xlat_root) {
                        DEBUG("xlat_register: Failed to create tree");
                        return -1;