summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-02-14 14:27:22 +0100
committerantirez <antirez@gmail.com>2020-02-14 14:27:45 +0100
commit47177c9edc9d6f738f1aacb33bd4e1d6c2c5a697 (patch)
tree6a1b318651fafdb5a314057dc9a8b6b791722311
parentf6e32a832f4aaa92721f4ea1eadc1d3897ba32c2 (diff)
downloadredis-47177c9edc9d6f738f1aacb33bd4e1d6c2c5a697.tar.gz
Tracking: fix operators precedence error in bcast check.
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 1b4b19645..69350eed1 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -2268,7 +2268,7 @@ NULL
}
if (c->flags & CLIENT_TRACKING) {
- int oldbcast = !!c->flags & CLIENT_TRACKING_BCAST;
+ int oldbcast = !!(c->flags & CLIENT_TRACKING_BCAST);
if (oldbcast != bcast) {
addReplyError(c,
"You can't switch BCAST mode on/off before disabling "