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 commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent e3698259af
commit b599947348

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);