summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-04 23:26:47 -0800
committerJeremy Allison <jra@samba.org>2008-01-04 23:26:47 -0800
commit4881ed00ca1d0ab156863c6821db670c70f5d0ea (patch)
tree9f7b02a57be902734f71b165583a01fb1196f186 /source3/nmbd
parent99e349b35da5ea5df0889a8eccc0c9774ecc24e9 (diff)
downloadsamba-4881ed00ca1d0ab156863c6821db670c70f5d0ea.tar.gz
samba-4881ed00ca1d0ab156863c6821db670c70f5d0ea.tar.bz2
samba-4881ed00ca1d0ab156863c6821db670c70f5d0ea.zip
More logical operation on bool.
Jeremy. (This used to be commit 7e8e91aeb3795d26ae8591665981bc42d8b6122f)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_elections.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_elections.c b/source3/nmbd/nmbd_elections.c
index bafe87c044..b50d215b91 100644
--- a/source3/nmbd/nmbd_elections.c
+++ b/source3/nmbd/nmbd_elections.c
@@ -336,7 +336,9 @@ bool check_elections(void)
for (subrec = FIRST_SUBNET; subrec; subrec = NEXT_SUBNET_EXCLUDING_UNICAST(subrec)) {
struct work_record *work;
for (work = subrec->workgrouplist; work; work = work->next) {
- run_any_election |= work->RunningElection;
+ if (work->RunningElection) {
+ run_any_election = work->RunningElection;
+ }
/*
* Start an election if we have any chance of winning.