소스 검색

Fix nonsensical equality comparison which may prevent certain links from being regarded as preferred in multipath scenarios

Joseph Henry 2 년 전
부모
커밋
b6074da498
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      node/Bond.cpp

+ 1 - 1
node/Bond.cpp

@@ -267,7 +267,7 @@ void Bond::nominatePathToBond(const SharedPtr<Path>& path, int64_t now)
 					if (commonLink) {
 						for (unsigned int j = 0; j < ZT_MAX_PEER_NETWORK_PATHS; ++j) {
 							if (_paths[j].p && _paths[j].p.ptr() != _paths[i].p.ptr()) {
-								if (RR->bc->getLinkBySocket(_policyAlias, _paths[j].p->localSocket()) == commonLink, true) {
+								if (RR->bc->getLinkBySocket(_policyAlias, _paths[j].p->localSocket(), true) == commonLink) {
 									bFoundCommonLink = true;
 									_paths[j].onlyPathOnLink = false;
 								}