Correctly handle one-element paths. Don't call setCanonical, it's broken.

This commit is contained in:
JoelKatz
2013-04-08 17:44:04 -07:00
parent 46dbd3e967
commit c0049542a2
3 changed files with 4 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ static bool bQualityCmp(const path_LQ_t& a, const path_LQ_t&b)
// A path is a default path if it is implied via src, dst, send, and sendmax.
bool Pathfinder::bDefaultPath(const STPath& spPath)
{
if (2 == spPath.mPath.size()) {
if (2 >= spPath.mPath.size()) {
// Empty path is a default. Don't need to add it to return set.
cLog(lsTRACE) << "findPaths: empty path: direct";