Lines Matching refs:new_hosts
43 struct hbac_rule_element *new_hosts;
58 new_hosts = talloc_zero(tmp_ctx, struct hbac_rule_element);
59 if (new_hosts == NULL) {
65 ret = hbac_get_category(rule_attrs, category_attr, &new_hosts->category);
70 if (new_hosts->category & HBAC_CATEGORY_ALL) {
89 new_hosts->names = talloc_array(new_hosts,
92 if (new_hosts->names == NULL) {
97 new_hosts->groups = talloc_array(new_hosts,
100 if (new_hosts->groups == NULL) {
145 new_hosts->names[num_hosts] = talloc_strdup(new_hosts->names,
147 if (new_hosts->names[num_hosts] == NULL) {
181 new_hosts->groups[num_hostgroups] =
182 talloc_strdup(new_hosts->groups, name);
183 if (new_hosts->groups[num_hostgroups] == NULL) {
201 new_hosts->names[num_hosts] = NULL;
202 new_hosts->groups[num_hostgroups] = NULL;
205 new_hosts->names = talloc_realloc(new_hosts, new_hosts->names,
207 if (new_hosts->names == NULL) {
212 new_hosts->groups = talloc_realloc(new_hosts, new_hosts->groups,
214 if (new_hosts->groups == NULL) {
223 *hosts = talloc_steal(mem_ctx, new_hosts);