From: Arran Cudbard-Bell Date: Thu, 15 Jun 2017 15:44:11 +0000 (-0400) Subject: Pass inst->data to the thread_instantiate function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9e7cc8f5c0e95c0ea7e2dced3d103cfbb42774;p=thirdparty%2Ffreeradius-server.git Pass inst->data to the thread_instantiate function Which is the module's instance data, as opposed to the thing that contains the module's instance data --- diff --git a/src/main/modules.c b/src/main/modules.c index 29dd86bfbc0..2ad06dd2e39 100644 --- a/src/main/modules.c +++ b/src/main/modules.c @@ -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;