infinite loop in find_new_dc

Jeremy Allison jra at samba.org
Wed Feb 11 16:07:17 MST 2009


On Wed, Feb 11, 2009 at 01:09:47PM -0800, Herb Lewis wrote:
> If you are not using WINS and your DNS search order does not
> allow resolution of the name returned by the get_dcs call
> you will put winbindd into an infinite loop in this function
> because of the "goto again" at the end of the function.
>
> this is in source/winbindd/winbindd_cm.c and the problem
> exists in 3.0 as well as 3.2 and I assume 3.3.
>
> Why are we doing this retry, and if it is necessary, we
> need to put a max number of trys on it

Have you reproduced this ? Looking in the source code
get_dcs() must map names into IP addresses before
returning num_dcs != 0, so I can't see how this
can occur.

Jeremy.


More information about the samba-technical mailing list