BIND 10 trac1207, updated. c17d922ffe421fbbcbffab695cfeb01cdc316bca [1207] fix two memory/cast issues in modified code

BIND 10 source code commits bind10-changes at lists.isc.org
Fri May 11 13:39:49 UTC 2012


The branch, trac1207 has been updated
       via  c17d922ffe421fbbcbffab695cfeb01cdc316bca (commit)
      from  2a57f8bbd3c0b7fff3b5ee1f95c83c3435daa2c7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c17d922ffe421fbbcbffab695cfeb01cdc316bca
Author: Jelte Jansen <jelte at isc.org>
Date:   Fri May 11 06:32:48 2012 -0700

    [1207] fix two memory/cast issues in modified code
    
    See http://bind10.isc.org/ticket/1207#comment:11

-----------------------------------------------------------------------

Summary of changes:
 src/bin/auth/command.cc                 |    2 +-
 src/bin/auth/tests/auth_srv_unittest.cc |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/auth/command.cc b/src/bin/auth/command.cc
index bd4c1c1..12f0b2b 100644
--- a/src/bin/auth/command.cc
+++ b/src/bin/auth/command.cc
@@ -229,7 +229,7 @@ private:
                       " is not found in data source");
         }
 
-        old_zone_finder_ = boost::dynamic_pointer_cast<InMemoryZoneFinder>(
+        old_zone_finder_ = boost::static_pointer_cast<InMemoryZoneFinder>(
             result.zone_finder);
 
         return (true);
diff --git a/src/bin/auth/tests/auth_srv_unittest.cc b/src/bin/auth/tests/auth_srv_unittest.cc
index ac762e8..c7f08be 100644
--- a/src/bin/auth/tests/auth_srv_unittest.cc
+++ b/src/bin/auth/tests/auth_srv_unittest.cc
@@ -89,6 +89,10 @@ protected:
         server.setStatisticsSession(&statistics_session);
     }
 
+    ~AuthSrvTest() {
+        parse_message->clear(Message::PARSE);
+    }
+
     virtual void processMessage() {
         // If processMessage has been called before, parse_message needs
         // to be reset. If it hasn't, there's no harm in doing so



More information about the bind10-changes mailing list