]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Disable dict autoloading so we can work with the single dictionary until everything...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 30 Mar 2018 19:37:38 +0000 (20:37 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 31 Mar 2018 18:52:52 +0000 (19:52 +0100)
src/main/module.c

index 07f39e3cc7b8cc015ccc342e22646be6897f39ec..62f7cc6ecf7c99892d423aca030d5af82387d650 100644 (file)
@@ -968,6 +968,7 @@ static int virtual_module_bootstrap(CONF_SECTION *modules, CONF_SECTION *vm_cs)
  *     - 0 on success.
  *     - -1 on failure.
  */
+#if 0
 static int _module_dict_autoload(dl_t const *module, void *symbol, UNUSED void *user_ctx)
 {
        fr_dict_autoload_t const *p = *((fr_dict_autoload_t **)symbol);
@@ -996,6 +997,7 @@ static void _module_dict_autofree(UNUSED dl_t const *module, void *symbol, UNUSE
 
        while ((p++)->proto) fr_dict_autofree(p);
 }
+#endif
 
 /** Callback to automatically resolve attributes and check the types are correct
  *
@@ -1040,9 +1042,9 @@ int modules_bootstrap(CONF_SECTION *root)
        /*
         *      Register dictionary autoload callbacks
         */
-       dl_symbol_init_cb_register("dict", _module_dict_autoload, NULL);
+//     dl_symbol_init_cb_register("dict", _module_dict_autoload, NULL);
        dl_symbol_init_cb_unregister("dict_attr", _module_dict_attr_autoload);
-       dl_symbol_free_cb_register("dict", _module_dict_autofree, NULL);
+//     dl_symbol_free_cb_register("dict", _module_dict_autofree, NULL);
 
        /*
         *      Remember where the modules were stored.