From 5dbebc513ad67bb65c41c42a9c761c085309564f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 1 Feb 2017 12:00:25 -0800 Subject: Minor send path refactor to make packet I/O work on clusters if they are members of networks. Also fix a crash if compiled in cluster mode but no cluster is enabled. --- node/Network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/Network.cpp') diff --git a/node/Network.cpp b/node/Network.cpp index 320dcf39..c5855418 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -974,7 +974,7 @@ uint64_t Network::handleConfigChunk(const uint64_t packetId,const Address &sourc } #ifdef ZT_ENABLE_CLUSTER - if (source) + if ((source)&&(RR->cluster)) RR->cluster->broadcastNetworkConfigChunk(chunk.field(start,chunk.size() - start),chunk.size() - start); #endif @@ -1007,7 +1007,7 @@ uint64_t Network::handleConfigChunk(const uint64_t packetId,const Address &sourc } #ifdef ZT_ENABLE_CLUSTER - if (source) + if ((source)&&(RR->cluster)) RR->cluster->broadcastNetworkConfigChunk(chunk.field(start,chunk.size() - start),chunk.size() - start); #endif } else { -- cgit v1.2.3