Browse Source

[trac812] a prerequisite fixes to tsigkey: make sure key name is also
in the canonical form (i.e. downcased).

JINMEI Tatuya 14 years ago
parent
commit
adfd1014c3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/dns/tsigkey.cc

+ 3 - 2
src/lib/dns/tsigkey.cc

@@ -45,10 +45,11 @@ TSIGKey::TSIGKeyImpl {
         secret_(static_cast<const uint8_t*>(secret),
                 static_cast<const uint8_t*>(secret) + secret_len)
     {
-        // Convert the name to the canonical form.
+        // Convert the key and algorithm names to the canonical form.
+        key_name_.downcase();
         algorithm_name_.downcase();
     }
-    const Name key_name_;
+    Name key_name_;
     Name algorithm_name_;
     const vector<uint8_t> secret_;
 };