dfs_server: get_dcs: fix pointer list termination
authorArvid Requate <requate@univention.de>
Mon, 31 Mar 2014 16:45:07 +0000 (18:45 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 2 Apr 2014 22:26:27 +0000 (00:26 +0200)
commitc3719a6feef87dabfaf698cac89513b421fe1952
treec021fe377f06f5b90abf899b41f1a90187b7dd67
parent32b35b8d92075dc25f2e29be5a10648e2e5cbda6
dfs_server: get_dcs: fix pointer list termination

Should fix a potential SEGV e.g. in case searched_site == NULL and no
objects with objectClass=site are found.

Signed-off-by: Arvid Requate <requate@univention.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
dfs_server/dfs_server_ad.c