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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Apr 2017 10:26:12 +0000 (12:26 +0200)
commit36a97de00dee6dd7acdb0a2fd3322f5ddef1831e
treeb183b51c3a62c29338a9ad53424d89b3308f1b50
parent96c71509470be1685d9941b70796e534481a48e6
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>
(cherry picked from commit 60af864f751706c48b8af448700bf06e33e45946)
source3/lib/system.c