fr_assert(virtual_servers[i]->process_mi);
- /*
- * Complete final instantiation of the process module
- */
- if (module_instantiate(virtual_servers[i]->process_mi) < 0) {
- cf_log_perr(virtual_servers[i]->process_mi->conf,
- "Failed instantiating process module");
- return -1;
- }
-
/*
* Compile the processing sections indicated by
- * the process module.
+ * the process module. This must be done before
+ * module_instantiate is called, as the instance
+ * data is protected after this call.
*/
if (process->compile_list) {
tmpl_rules_t parse_rules = {
}
}
+ /*
+ * Complete final instantiation of the process module
+ */
+ if (module_instantiate(virtual_servers[i]->process_mi) < 0) {
+ cf_log_perr(virtual_servers[i]->process_mi->conf,
+ "Failed instantiating process module");
+ return -1;
+ }
+
/*
* Print out warnings for unused "recv" and
* "send" sections.