*/
static int _xlat_inst_detach(xlat_inst_t *inst)
{
+ (void)talloc_get_type_abort(inst->node, xlat_exp_t);
rad_assert(inst->node->type == XLAT_FUNC);
/*
{
xlat_inst_t *inst = NULL;
+ (void)talloc_get_type_abort(node, xlat_exp_t);
+
rad_assert(xlat_inst_tree); /* xlat_inst_init must have been called */
rad_assert(node->type == XLAT_FUNC);
rad_assert(!node->inst);
if (inst->node->xlat->thread_instantiate) {
int ret;
- ret = inst->node->xlat->thread_instantiate(inst, thread_inst->data, inst->node, inst->node->xlat->uctx);
+ ret = inst->node->xlat->thread_instantiate(inst->data, thread_inst->data, inst->node, inst->node->xlat->uctx);
if (ret < 0) {
talloc_free(thread_inst);
return -1;
{
bool ret;
+ rad_assert(node->type == XLAT_FUNC);
rad_assert(!node->inst && !node->thread_inst);
node->inst = xlat_inst_alloc(node);