summaryrefslogtreecommitdiff
path: root/source3/nameresp.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-03-15 17:59:42 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-03-15 17:59:42 +0000
commite1eb836430256fc917d22a9e14cf2b76a3f0864d (patch)
tree1a7370ee91b8c18226bdaf822eae9087f3dd6f6e /source3/nameresp.c
parent9f1d339309406a2beb8469a3190a10e4f3dbdd0d (diff)
downloadsamba-e1eb836430256fc917d22a9e14cf2b76a3f0864d.tar.gz
samba-e1eb836430256fc917d22a9e14cf2b76a3f0864d.tar.bz2
samba-e1eb836430256fc917d22a9e14cf2b76a3f0864d.zip
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)
Diffstat (limited to 'source3/nameresp.c')
-rw-r--r--source3/nameresp.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/nameresp.c b/source3/nameresp.c
index 77addc2985..b920742c76 100644
--- a/source3/nameresp.c
+++ b/source3/nameresp.c
@@ -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;