mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
bug: when checking whether there is a PDC already on the current local
subnet, on finding that there was no response, the (broadcast) ip address queried was accidentally being compared to the (unicast) interface ip address. this would stop non-WINS-client nmbds from ever becoming a PDC. lkcl (This used to be commit 94060a4a9b834aff3857abfbc9ca9c0e6298aeca)
This commit is contained in:
parent
9f1d339309
commit
e1eb836430
@ -176,13 +176,10 @@ static void dead_netbios_entry(struct subnet_record *d,
|
||||
}
|
||||
if (n->num_msgs == 0)
|
||||
{
|
||||
if (ismyip(n->send_ip))
|
||||
{
|
||||
struct work_record *work = find_workgroupstruct(d,n->name.name,False);
|
||||
if (work && d)
|
||||
{
|
||||
become_domain_master(d,work);
|
||||
}
|
||||
struct work_record *work = find_workgroupstruct(d,n->name.name,False);
|
||||
if (work && d)
|
||||
{
|
||||
become_domain_master(d,work);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user