]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pass inst->data to the thread_instantiate function
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Jun 2017 15:44:11 +0000 (11:44 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 15 Jun 2017 15:44:17 +0000 (11:44 -0400)
Which is the module's instance data, as opposed to the thing that contains the module's instance data

src/main/modules.c

index 29dd86bfbc0f692bc883daf745f0f5362e6f11ef..2ad06dd2e3990893554137073f05c195a05ba5a0 100644 (file)
@@ -584,7 +584,7 @@ static int _module_thread_instantiate(void *instance, void *ctx)
        }
 
        if (inst->module->thread_instantiate) {
-               ret = inst->module->thread_instantiate(inst->cs, inst, thread_inst_ctx->el, thread_inst->data);
+               ret = inst->module->thread_instantiate(inst->cs, inst->data, thread_inst_ctx->el, thread_inst->data);
                if (ret < 0) {
                        ERROR("Thread instantiation failed for module \"%s\"", inst->name);
                        return -1;