]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allocate array of connection pointers for static home servers
authorNick Porter <nick@portercomputing.co.uk>
Fri, 8 Aug 2025 11:00:33 +0000 (12:00 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 8 Aug 2025 11:09:48 +0000 (12:09 +0100)
src/modules/rlm_radius/bio.c

index fe4287848209c7a733ef385a8ea9af9b8da36dd1..ae0957b07b569574c6e245e452b14e7dfa0ac10b 100644 (file)
@@ -2631,6 +2631,9 @@ static int mod_thread_instantiate(module_thread_inst_ctx_t const *mctx)
                        thread->num_ports = range / main_config->max_workers;
                        thread->ctx.fd_config.src_port_start = inst->fd_config.src_port_start + (thread->num_ports * fr_schedule_worker_id());
                        thread->ctx.fd_config.src_port_end = inst->fd_config.src_port_start + (thread->num_ports * (fr_schedule_worker_id() +1)) - 1;
+                       if (inst->mode != RLM_RADIUS_MODE_XLAT_PROXY) {
+                               thread->connections = talloc_zero_array(thread, connection_t *, thread->num_ports);
+                       }
                }
 
                thread->ctx.trunk = trunk_alloc(thread, mctx->el, &io_funcs,