]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1207] add comments
authorJelte Jansen <jelte@isc.org>
Wed, 16 May 2012 11:49:32 +0000 (13:49 +0200)
committerJelte Jansen <jelte@isc.org>
Wed, 16 May 2012 11:49:32 +0000 (13:49 +0200)
src/bin/auth/command.cc
src/bin/auth/tests/auth_srv_unittest.cc

index 12f0b2bd08d2216c3f625be789db3afdb21190de..750ea28309006c3e91024d648456c9cf236e276d 100644 (file)
@@ -229,6 +229,9 @@ private:
                       " is not found in data source");
         }
 
+        // It would appear that dynamic_cast does not work on all systems;
+        // it seems to confuse the RTTI system, resulting in NULL return
+        // values. So we use the more dangerous static_pointer_cast here.
         old_zone_finder_ = boost::static_pointer_cast<InMemoryZoneFinder>(
             result.zone_finder);
 
index f3e62a45fbfbbd813080264afae2b83f38147285..2f1f404a318dafba228ece96f9c58ba2a1e84eaa 100644 (file)
@@ -91,6 +91,9 @@ protected:
     }
 
     ~AuthSrvTest() {
+        // Clear the message now; depending on the RTTI implementation,
+        // type information may be lost if the message is cleared
+        // automatically later, so as a precaution we do it now.
         parse_message->clear(Message::PARSE);
     }