summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-16 23:18:20 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-16 23:18:20 +0000
commit601c51b351fc097c27aef9be8f5471099fffeb3a (patch)
tree83ba698470d8c44d2eeae420a4b38938577197e0
parent20d4dada404ae6dfe9534721376403bb1efcb490 (diff)
downloadinfinitytier-601c51b351fc097c27aef9be8f5471099fffeb3a.tar.gz
infinitytier-601c51b351fc097c27aef9be8f5471099fffeb3a.zip
Bug fix.
-rw-r--r--node/NetworkConfig.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp
index e7a3e0ea..30d8c9fc 100644
--- a/node/NetworkConfig.hpp
+++ b/node/NetworkConfig.hpp
@@ -432,7 +432,7 @@ public:
return true;
}
}
- if (specialistCount >= ZT_MAX_NETWORK_SPECIALISTS) {
+ if (specialistCount < ZT_MAX_NETWORK_SPECIALISTS) {
specialists[specialistCount++] = f | aint;
return true;
}