]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
detail_reader: Pass in correct instance data to the detail work submodule
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Apr 2023 00:08:39 +0000 (10:08 +1000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 19 Apr 2023 00:08:39 +0000 (10:08 +1000)
raddb/sites-available/detail
src/listen/detail/proto_detail.c

index c2fb992c224604d910bd48aa712d8d969aa25394..e922e4bb95fdcd209af6d42f6fa1eb30926d2b38 100644 (file)
@@ -28,6 +28,12 @@ server detail {
        #  RADIUS UDP / TCP socket IO.
        #
        listen detail {
+               #
+               #  Overrides the default transport prefix set by
+               #  namespace and loads the detail reader code.
+               #
+               proto = detail
+
                #
                #  Types of packets we are reading.
                #
index 3ebe8d91094512eb726a7561808216b2ef7dc773..bb83498b7c7b3037e59ed67e698f0fd1699c6e0c 100644 (file)
@@ -476,7 +476,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
         */
        if (strcmp(inst->io_submodule->module->dl->name, "proto_detail_work") != 0) {
                if (inst->work_io->common.instantiate &&
-                   (inst->work_io->common.instantiate(MODULE_INST_CTX(inst->io_submodule)) < 0)) {
+                   (inst->work_io->common.instantiate(MODULE_INST_CTX(inst->work_submodule)) < 0)) {
                        cf_log_err(inst->work_io_conf, "Instantiation failed for \"%s\"", inst->work_io->common.name);
                        return -1;
                }