* creates the listener, and adds it to the scheduler.
*/
typedef struct {
- dl_module_inst_t const *dl_inst; //!< our parent dl_inst
+ dl_module_inst_t const *dl_inst; //!< our parent dl_inst
uint32_t max_connections; //!< maximum number of connections to allow
uint32_t max_clients; //!< maximum number of dynamic clients to allow
CONF_SECTION *server_cs; //!< server CS for this listener
- dl_module_inst_t *submodule; //!< As provided by the transport_parse
+ dl_module_inst_t *submodule; //!< As provided by the transport_parse
///< callback. Broken out into the
///< app_io_* fields below for convenience.
- dl_module_inst_t *dynamic_submodule; //!< for dynamically defined clients
+ dl_module_inst_t *dynamic_submodule; //!< for dynamically defined clients
fr_app_t *app; //!< main protocol handler
void *app_instance; //!< instance data for main protocol handler
struct module_instance_s {
char const *name; //!< Instance name e.g. user_database.
- dl_module_inst_t *dl_inst; //!< Structure containing the module's instance data,
+ dl_module_inst_t *dl_inst; //!< Structure containing the module's instance data,
//!< configuration, and dl handle.
module_t const *module; //!< Public module structure. Cached for convenience.
*/
typedef struct {
rlm_rcode_t *presult; //!< Where to store the result.
- module_thread_instance_t *thread; //!< thread-local data for this module
+ module_thread_instance_t *thread; //!< thread-local data for this module
void *rctx; //!< for resume / signal
fr_unlang_module_resume_t resume; //!< resumption handler
fr_unlang_module_signal_t signal; //!< for signal handlers
}
}
-
static unlang_action_t unlang_parallel(REQUEST *request, rlm_rcode_t *presult)
{
unlang_stack_t *stack = request->stack;
int i;
g = unlang_generic_to_group(instruction);
-
if (!g->num_children) {
*presult = RLM_MODULE_NOOP;
return UNLANG_ACTION_CALCULATE_RESULT;
/*
* Allocate an array for the children.
*/
- frame->state = state = talloc_zero_size(request, sizeof(unlang_parallel_state_t) + sizeof(state->children[0]) * g->num_children);
+ frame->state = state = talloc_zero_array(request,
+ sizeof(unlang_parallel_state_t) +
+ sizeof(state->children[0]) *
+ g->num_children);
if (!state) {
*presult = RLM_MODULE_FAIL;
return UNLANG_ACTION_CALCULATE_RESULT;