winbind: Don't add duplicate IDs in wbinfo -r
authorVolker Lendecke <vl@samba.org>
Wed, 18 Jan 2017 15:54:03 +0000 (16:54 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 24 Jan 2017 01:36:19 +0000 (02:36 +0100)
commit9b0fc295eff69120593211863d0253bdd9ecd0fe
tree40fd81f3e9391c68ff358bd277993d226380d07b
parenta4733c7fde1764dd42a24412c744794410e570ba
winbind: Don't add duplicate IDs in wbinfo -r

We look at the netsamlogon_cache entry twice: Once in queryuser and
once in lookupusergroups_cached. This can add the group SID twice.

Use add_sid_to_array_unique to avoid this.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jan 24 02:36:19 CET 2017 on sn-devel-144
source3/winbindd/wb_gettoken.c