winbindd: Ensure we do not look at rid_array before checking if it was returned
commit989e320e23085f862571492933179726e9c5af1d
authorAndrew Bartlett <abartlet@samba.org>
Fri, 28 Mar 2014 03:30:28 +0000 (28 16:30 +1300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 11 Jun 2014 09:40:38 +0000 (11 11:40 +0200)
treec22318698ef7998281ac22001877074c95967f4f
parentcd9061305bf110eb7da8557c982f95424014f81c
winbindd: Ensure we do not look at rid_array before checking if it was returned

We no longer return early if there are no members, we just return an empty array.

Fixes bug #10627 - rid_array used before status checked - segmentation fault due to null pointer dereference

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

Change-Id: I7b0949e0c0b9277426a8007514a8658615f6c709
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Wed Jun 11 11:40:38 CEST 2014 on sn-devel-104
source3/winbindd/winbindd_rpc.c