diff options
-rw-r--r-- | source4/libnet/libnet_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c index 0055639974..7f93b3f6d5 100644 --- a/source4/libnet/libnet_user.c +++ b/source4/libnet/libnet_user.c @@ -1138,11 +1138,11 @@ static void continue_users_enumerated(struct tevent_req *subreq) if (composite_nomem(user_sid, c)) return; /* username */ - s->users[i].username = talloc_strdup(c, entry->name.string); + s->users[i].username = talloc_strdup(s->users, entry->name.string); if (composite_nomem(s->users[i].username, c)) return; /* sid string */ - s->users[i].sid = dom_sid_string(c, user_sid); + s->users[i].sid = dom_sid_string(s->users, user_sid); if (composite_nomem(s->users[i].sid, c)) return; } |