diff --git a/src/listen/bfd/proto_bfd.c b/src/listen/bfd/proto_bfd.c index 68fe3db2ac95..b1b6863d4f6b 100644 --- a/src/listen/bfd/proto_bfd.c +++ b/src/listen/bfd/proto_bfd.c @@ -473,6 +473,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/control/proto_control.c b/src/listen/control/proto_control.c index 079c0ff7e1eb..ab82322aa2a7 100644 --- a/src/listen/control/proto_control.c +++ b/src/listen/control/proto_control.c @@ -163,6 +163,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/cron/proto_cron.c b/src/listen/cron/proto_cron.c index 2b515c59be3a..88581948dda8 100644 --- a/src/listen/cron/proto_cron.c +++ b/src/listen/cron/proto_cron.c @@ -242,6 +242,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/dhcpv4/proto_dhcpv4.c b/src/listen/dhcpv4/proto_dhcpv4.c index 1e349c0fbe90..861e1763dde9 100644 --- a/src/listen/dhcpv4/proto_dhcpv4.c +++ b/src/listen/dhcpv4/proto_dhcpv4.c @@ -433,6 +433,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/dhcpv6/proto_dhcpv6.c b/src/listen/dhcpv6/proto_dhcpv6.c index 7e2d4bc4a130..1a49dffcb3cf 100644 --- a/src/listen/dhcpv6/proto_dhcpv6.c +++ b/src/listen/dhcpv6/proto_dhcpv6.c @@ -414,6 +414,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/dns/proto_dns.c b/src/listen/dns/proto_dns.c index 5e2a10bd16cf..82c1e6529727 100644 --- a/src/listen/dns/proto_dns.c +++ b/src/listen/dns/proto_dns.c @@ -357,6 +357,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 64); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/load/proto_load.c b/src/listen/load/proto_load.c index cf666f26b3ca..9e728d5ef526 100644 --- a/src/listen/load/proto_load.c +++ b/src/listen/load/proto_load.c @@ -253,6 +253,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/radius/proto_radius.c b/src/listen/radius/proto_radius.c index 873e1557a593..fe59d5fc1a01 100644 --- a/src/listen/radius/proto_radius.c +++ b/src/listen/radius/proto_radius.c @@ -508,6 +508,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) */ inst->io.mi = mctx->mi; + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/tacacs/proto_tacacs.c b/src/listen/tacacs/proto_tacacs.c index 5fddbff31c51..a4e69ca6058f 100644 --- a/src/listen/tacacs/proto_tacacs.c +++ b/src/listen/tacacs/proto_tacacs.c @@ -516,6 +516,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */ diff --git a/src/listen/vmps/proto_vmps.c b/src/listen/vmps/proto_vmps.c index 3e05c7c376d7..ae17cda7797a 100644 --- a/src/listen/vmps/proto_vmps.c +++ b/src/listen/vmps/proto_vmps.c @@ -379,6 +379,12 @@ static int mod_instantiate(module_inst_ctx_t const *mctx) FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024); FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535); + /* + * Instantiate the transport module before calling the + * common instantiation function. + */ + if (module_instantiate(inst->io.submodule) < 0) return -1; + /* * Instantiate the master io submodule */