diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index a00bc3f5d9..9b810063c5 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -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); |