dfs_server: Use dsdb_search_one to catch 0 results as well as NO_SUCH_OBJECT errors
commit0e8f8b726b2e52900800766f28eb207a9fa5da1f
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Jul 2013 22:40:39 +0000 (30 10:40 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 17 Oct 2013 10:25:55 +0000 (17 12:25 +0200)
treef98462e469707191bc4c996c5cfe62dba68b97c7
parent0419b685c998ae0e73b25c155a9c64ef92f24cb6
dfs_server: Use dsdb_search_one to catch 0 results as well as NO_SUCH_OBJECT errors

This ensures we do not de-reference an invalid rs->msgs pointer if the
pointed-to object was not objectclass=computer

Andrew Bartlett

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug  2 13:11:20 CEST 2013 on sn-devel-104
(cherry picked from commit 859182da6d06be0e9d37d7ed3448efc3dc78bdb2)

Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Thu Oct 17 12:25:55 CEST 2013 on sn-devel-104
dfs_server/dfs_server_ad.c