talloc_set_destructor(marker, _free_proto_handle);
if (master_listen[type].magic != RLM_MODULE_INIT) {
- ERROR("Failed to load protocol '%s' due to internal sanity check problem",
+ ERROR("Failed to load protocol '%s', it has the wrong version.",
master_listen[type].name);
return NULL;
}
return NULL;
}
+ /*
+ * DHCP and VMPS *must* be loaded dynamically.
+ */
+ if (master_listen[type].magic != RLM_MODULE_INIT) {
+ ERROR("Cannot load protocol '%s', as the required library does not exist",
+ master_listen[type].name);
+ return NULL;
+ }
+
/*
* Allow listen sections in the default config to
* refer to a server.
return NULL;
}
-
server_cs = cf_section_sub_find_name2(main_config.config, "server",
this->server);
if (!server_cs && this->server) {