1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

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

This commit is contained in:
Andrew Tridgell -
parent e3698259af
commit b599947348

View File

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