||cJSON_AddStringToObject(j_group,"textdescription","If unauthenticated access is allowed, this group can be used to define roles for clients that connect without a password.")==NULL
||cJSON_AddArrayToObject(j_group,"roles")==NULL
){
returnMOSQ_ERR_NOMEM;
}
returnMOSQ_ERR_SUCCESS;
}
staticintadd_groups(cJSON*j_tree)
{
cJSON*j_groups;
@ -268,7 +290,7 @@ static int add_groups(cJSON *j_tree)
returnMOSQ_ERR_NOMEM;
}
returnMOSQ_ERR_SUCCESS;
returngroup_add_anon(j_groups);
}
@ -501,6 +523,7 @@ int dynsec__config_init(const char *filename)