Cleanup of DC enumeration in get_dcs()
authorSteven Danneman <steven.danneman@isilon.com>
Thu, 4 Sep 2008 19:05:13 +0000 (12:05 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 4 Sep 2008 19:05:13 +0000 (12:05 -0700)
commitedd234e7a22dab105256f90df36d86f168dcea4c
tree33f99cc2cf201f1067564d3cb6ced54273e8feeb
parent8d6220a94667c5906ead5fa80b6afabc82159b53
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/winbindd/winbindd_cm.c