From: Arran Cudbard-Bell Date: Thu, 11 Jul 2024 19:21:50 +0000 (-0400) Subject: Set inst->parent first in proto_load_step.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=237183aac31fbd727729fa324920e3d43d84b4dd;p=thirdparty%2Ffreeradius-server.git Set inst->parent first in proto_load_step.c --- diff --git a/src/listen/load/proto_load_step.c b/src/listen/load/proto_load_step.c index 6460a8bc8a0..c95080bd929 100644 --- a/src/listen/load/proto_load_step.c +++ b/src/listen/load/proto_load_step.c @@ -384,12 +384,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) fclose(fp); } - vp = fr_pair_find_by_da(&inst->pair_list, NULL, inst->parent->attr_packet_type); - if (vp) inst->code = vp->vp_uint32; - inst->parent = talloc_get_type_abort(mi->parent->data, proto_load_t); inst->cs = conf; + vp = fr_pair_find_by_da(&inst->pair_list, NULL, inst->parent->attr_packet_type); + if (vp) inst->code = vp->vp_uint32; + FR_INTEGER_BOUND_CHECK("start_pps", inst->load.start_pps, >=, 10); FR_INTEGER_BOUND_CHECK("start_pps", inst->load.start_pps, <, 400000);