winbindd: Ensure we do not look at rid_array before checking if it was returned
commit5663c4ac8b7f2c1fbd59177423d35cf8ad31dd82
authorAndrew Bartlett <abartlet@samba.org>
Fri, 28 Mar 2014 03:30:28 +0000 (28 16:30 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Jun 2014 11:08:54 +0000 (10 13:08 +0200)
treef3b48cc4c49755c21ba30ad7d09d77261a90dc66
parentb42fb61476413b8a075647b33f967bb3fb992d20
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-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Tue Jun 10 13:08:54 CEST 2014 on sn-devel-104
source3/winbindd/winbindd_rpc.c