*/
inst = rad_malloc(sizeof(rlm_exec_t));
+ if (!inst)
+ return -1;
memset(inst, 0, sizeof(rlm_exec_t));
/*
*/
inst = rad_malloc(sizeof(rlm_expr_t));
+ if (!inst)
+ return -1;
memset(inst, 0, sizeof(rlm_expr_t));
xlat_name = cf_section_name2(conf);
struct fastuser_instance *inst=0;
inst = rad_malloc(sizeof *inst);
-
+ if (!inst)
+ return -1;
memset(inst, 0, sizeof(*inst));
if (cf_section_parse(conf, inst, module_config) < 0) {
/* Set up a storage area for instance data. */
data = rad_malloc(sizeof(*data));
+ if (!data)
+ return -1;
+ memset(data, 0, sizeof(*data));
/* If the configuration parameters can't be parsed, then fail. */
if (cf_section_parse(conf, data, module_config) < 0) {