diff options
Diffstat (limited to 'source3/nsswitch/winbindd_rpc.c')
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index 322d284e0c..984c5cd841 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -527,8 +527,10 @@ NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain, /* process output */ for (i=0; i<num_aliases_query; i++) { + size_t na = *num_aliases; add_rid_to_array_unique(mem_ctx, alias_rids_query[i], - alias_rids, num_aliases); + alias_rids, &na); + *num_aliases = na; } TALLOC_FREE(query_sids); |