Otherwise the _recv() function won't move the children strings to the
callers memory context and let the callers crash.
metze
if (composite_nomem(group_sid, c)) return;
/* groupname */
- s->groups[i].groupname = talloc_strdup(c, entry->name.string);
+ s->groups[i].groupname = talloc_strdup(s->groups, entry->name.string);
if (composite_nomem(s->groups[i].groupname, c)) return;
/* sid string */
- s->groups[i].sid = dom_sid_string(c, group_sid);
+ s->groups[i].sid = dom_sid_string(s->groups, group_sid);
if (composite_nomem(s->groups[i].sid, c)) return;
}