summaryrefslogtreecommitdiff
path: root/source3/nameelect.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nameelect.c')
-rw-r--r--source3/nameelect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/nameelect.c b/source3/nameelect.c
index 2edc484ba0..ef3935b1fd 100644
--- a/source3/nameelect.c
+++ b/source3/nameelect.c
@@ -564,8 +564,7 @@ void process_election(struct packet_struct *p,char *buf)
for (work = d->workgrouplist; work; work = work->next)
{
- if (listening_name(work, &dgram->dest_name) &&
- strequal(work->work_group, lp_workgroup()))
+ if (strequal(work->work_group, lp_workgroup()))
{
if (win_election(work, version,criterion,timeup,name))
{