summaryrefslogtreecommitdiffstats
path: root/source
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
commit94060a4a9b834aff3857abfbc9ca9c0e6298aeca (patch)
tree970077d8e0da09d16ef9e556cea4b448ed7b3171 /source
parent377bfdecfcf618322004bfdcbdf9e520c0ebe8b5 (diff)
downloadsamba-94060a4a9b834aff3857abfbc9ca9c0e6298aeca.tar.gz
samba-94060a4a9b834aff3857abfbc9ca9c0e6298aeca.tar.xz
samba-94060a4a9b834aff3857abfbc9ca9c0e6298aeca.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
Diffstat (limited to 'source')
-rw-r--r--source/nameresp.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/nameresp.c b/source/nameresp.c
index 77addc29852..b920742c765 100644
--- a/source/nameresp.c
+++ b/source/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;