Browse Source

[2565] Use the wrapped RRClass directly, in the comparison

Mukund Sivaraman 12 years ago
parent
commit
6d28690c67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/master_loader.cc

+ 1 - 1
src/lib/dns/master_loader.cc

@@ -213,7 +213,7 @@ private:
         const MaybeRRClass rrclass =
             RRClass::createFromText(rrparam_token.getString());
         if (rrclass) {
-            if (rrclass != zone_class_) {
+            if (*rrclass != zone_class_) {
                 // It doesn't really matter much what type of exception
                 // we throw, we catch it just below.
                 isc_throw(isc::BadValue, "Class mismatch: " << rrclass <<