r15904: This does two things:
commit0e1cd9eaefc936555cc95ba2528d7bad36ef6426
authorVolker Lendecke <vlendec@samba.org>
Fri, 26 May 2006 12:28:55 +0000 (26 12:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:12 +0000 (10 11:17 -0500)
tree679bfb65d3d16db1efd0f562a28c70f34de4c6bb
parent865e13aea13f0f3ef7a2fd9dc33c62800f53c51a
r15904: This does two things:

Fix more potential segfaults when something on our way to a DC connection
fails.

We can not continue if dcip_to_name() fails. With

192.168.234.100 nt4pdc
192.168.234.100 windows#1c
192.168.234.100 windows#1b

in the lmhosts file when nt4pdc is rebooted, we do find the DC's IP address,
we can connect to TCP 139 while it is booting but anything else fails. So we
fall back to put the IP address into domain->dcname. When the DC is fully up
later on we try to do the auth2 against \\192.168.234.100 which gives
INVALID_COMPUTER_NAME. And we never get out of this loop again.

Fix this.

Jerry, maybe you can take a look.

Thanks,

Volker
(This used to be commit b1244e79068af9e287252b2dfbb8d612e717674a)
source3/nsswitch/winbindd_cm.c