dfs_server: Use dsdb_search_one to catch 0 results as well as NO_SUCH_OBJECT errors
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Jul 2013 22:40:39 +0000 (10:40 +1200)
committerStefan Metzmacher <metze@samba.org>
Fri, 2 Aug 2013 11:11:20 +0000 (13:11 +0200)
commit859182da6d06be0e9d37d7ed3448efc3dc78bdb2
tree103bb2022932b09af7c8397adaaa3b5113e58940
parentba40d0d9d320e500621a6a8107a2ef0a34aeb6ba
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
dfs_server/dfs_server_ad.c