summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libnet/libnet_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c
index 5d2e74824c..c4d44eefe8 100644
--- a/source4/libnet/libnet_group.c
+++ b/source4/libnet/libnet_group.c
@@ -414,7 +414,7 @@ static void continue_groups_enumerated(struct rpc_request *req)
group_sid = dom_sid_add_rid(c, domain_sid, entry->idx);
if (composite_nomem(group_sid, c)) return;
- s->groups[i].groupname = dom_sid_string(c, group_sid);
+ s->groups[i].groupname = talloc_strdup(c, entry->name.string);
if (composite_nomem(s->groups[i].groupname, c)) return;
s->groups[i].sid = dom_sid_string(c, group_sid);