Cleanup of DC enumeration in get_dcs()
authorSteven Danneman <steven.danneman@isilon.com>
Wed, 3 Sep 2008 22:31:39 +0000 (15:31 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Sep 2008 18:50:25 +0000 (11:50 -0700)
commitcb2d488e1dbd90953c496c5e25d648977884f7e3
tree2dab9d47d603572c81a4208a042fa9a9c686d382
parent4f2de29723bb7e588e6c9440649b57d56d10b587
Cleanup of DC enumeration in get_dcs()

This is a fix for a few small inefficiencies/bugs in the get_dcs() path.

* because the third add_one_dc_unique() loop was outside the ADS check all DCs
  returned from the non-sitename lookup were being tacked onto the dc_name_ip
  list twice.
* add_one_dc_unique() now checks if the given IP address already exists before
  adding it to the list, making the returned list actually unique
* added more thorough doxygen comment headers
source/lib/util_sock.c
source/libsmb/conncache.c
source/winbindd/winbindd_cm.c