s3:lib: Fix incorrect logic in sys_broken_getgroups()
authorJeremy Allison <jra@samba.org>
Mon, 17 Apr 2017 21:30:04 +0000 (14:30 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 18 Apr 2017 09:47:17 +0000 (11:47 +0200)
commit60af864f751706c48b8af448700bf06e33e45946
tree7dfefeafbb7a4efd8a2033e25b7d19b5f4eea2fc
parent600f8787e3b605c9f3e8f724c726e63157ee9efc
s3:lib: Fix incorrect logic in sys_broken_getgroups()

If setlen == 0 then the second argument must be ignored.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12747

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/system.c