minor patch to allow host announcements to remote subnets
[samba.git] / source3 / nameelect.c
index 4479f660c9f030dc111af2e0ae82ee3ff5034e93..1832240a1168308b6d8aa509be931839d31c5b2a 100644 (file)
@@ -355,6 +355,10 @@ BOOL check_elections(void)
   for (d = subnetlist; d; d = d->next)
     {
       struct work_record *work;
+      
+      /* we only want to run elections on our own interfaces */
+      if (!d->my_interface) continue;
+
       for (work = d->workgrouplist; work; work = work->next)
        {
          run_any_election |= work->RunningElection;