Lines Matching defs:new_srchost
162 struct hbac_request_element *new_srchost;
164 new_srchost = talloc_zero(mem_ctx, struct hbac_request_element);
165 fail_if (new_srchost == NULL);
167 new_srchost->name = talloc_strdup(new_srchost, HBAC_TEST_SRCHOST);
168 fail_if(new_srchost->name == NULL);
170 new_srchost->groups = talloc_array(new_srchost, const char *, 3);
171 fail_if(new_srchost->groups == NULL);
173 new_srchost->groups[0] = talloc_strdup(new_srchost->groups,
175 fail_if(new_srchost->groups[0] == NULL);
177 new_srchost->groups[1] = talloc_strdup(new_srchost->groups,
179 fail_if(new_srchost->groups[1] == NULL);
181 new_srchost->groups[2] = NULL;
183 *srchost = new_srchost;