bug: when checking whether there is a PDC already on the current local
authorSamba Release Account <samba-bugs@samba.org>
Sat, 15 Mar 1997 17:59:42 +0000 (17:59 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Sat, 15 Mar 1997 17:59:42 +0000 (17:59 +0000)
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)

source3/nameresp.c

index 77addc298529970ac253cc8dbca8603b65f75aad..b920742c7650ba25c2e535edbaac4892999ea00c 100644 (file)
@@ -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;