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:
parent
e3698259af
commit
b599947348
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user