Browse Source

[2052] Return order=0 when name comparison result is NONE

Mukund Sivaraman 13 years ago
parent
commit
87e091a226
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/name.cc

+ 2 - 2
src/lib/dns/name.cc

@@ -568,7 +568,7 @@ Name::partial_compare(const Name& other,
                 if ((nlabels == 0) &&
                     ((last_label < labelcount_) ||
                      (last_label_other < other.labelcount_))) {
-                    return (NameComparisonResult(chdiff, 0,
+                    return (NameComparisonResult(0, 0,
                                                  NameComparisonResult::NONE));
                 } else {
                     return (NameComparisonResult(chdiff, nlabels,
@@ -583,7 +583,7 @@ Name::partial_compare(const Name& other,
             if ((nlabels == 0) &&
                 ((last_label < labelcount_) ||
                  (last_label_other < other.labelcount_))) {
-                return (NameComparisonResult(cdiff, 0,
+                return (NameComparisonResult(0, 0,
                                              NameComparisonResult::NONE));
             } else {
                 return (NameComparisonResult(cdiff, nlabels,