Skip to content

Commit 9cbcc0f

Browse files
committed
fix various minor issues in module.c
1 parent 4fb3f8c commit 9cbcc0f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/lib/server/module.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ void module_list_debug(module_list_t const *ml)
626626
FR_FAULT_LOG(" phase masked:");
627627
FR_FAULT_LOG(" bootstrap : %s", ml->mask & MODULE_INSTANCE_BOOTSTRAPPED ? "yes" : "no");
628628
FR_FAULT_LOG(" instantiate : %s", ml->mask & MODULE_INSTANCE_INSTANTIATED ? "yes" : "no");
629-
FR_FAULT_LOG(" thread : %s", ml->mask & MODULE_INSTANCE_INSTANTIATED ? "yes" : "no");
629+
FR_FAULT_LOG(" thread : %s", ml->mask & MODULE_INSTANCE_NO_THREAD_INSTANTIATE ? "yes" : "no");
630630
FR_FAULT_LOG("}");
631631
/*
632632
* Modules are printed in the same order
@@ -1202,9 +1202,12 @@ int modules_coord_attach(module_list_t const *ml, fr_event_list_t *el)
12021202
inst = fr_rb_iter_next_inorder(ml->name_tree, &iter)) {
12031203
module_instance_t *mi = talloc_get_type_abort(inst, module_instance_t);
12041204
module_thread_instance_t *thread;
1205+
12051206
if (!mi->exported->coord_attach) continue;
12061207

12071208
thread = ml->thread_data_get(mi);
1209+
if (!thread) continue;
1210+
12081211
if (mi->exported->coord_attach(MODULE_THREAD_INST_CTX(mi, thread->data, el)) < 0) return -1;
12091212
}
12101213

0 commit comments

Comments
 (0)