1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

don't die with a FPE if there are no DCs

(This used to be commit b599947348)
This commit is contained in:
Andrew Tridgell 2001-11-26 09:28:27 +00:00
parent df81a6ec23
commit 3d9f2aa388

View File

@ -152,6 +152,8 @@ static BOOL cm_get_dc_name(char *domain, fstring srv_name)
if(is_local_net(ip_list[i]))
goto got_ip;
}
if (count == 0) return False;
i = (sys_random() % count);