diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index e7a3e0ead..30d8c9fcc 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; }