BIND 10 trac613, updated. 09191932190ac8a64a4b77def3877fc5801d8aeb [trac613] made sure NameserverEntry::xxx_address_ are initialized in the constructor.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Feb 25 19:04:00 UTC 2011


The branch, trac613 has been updated
       via  09191932190ac8a64a4b77def3877fc5801d8aeb (commit)
      from  ab86095a11e912123c40f6b41879dfa634e491a8 (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 09191932190ac8a64a4b77def3877fc5801d8aeb
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Fri Feb 25 11:02:54 2011 -0800

    [trac613] made sure NameserverEntry::xxx_address_ are initialized in the constructor.
    
    With this change we can silence cppcheck in one other point.

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

Summary of changes:
 src/cppcheck-suppress.lst       |    1 -
 src/lib/nsas/nameserver_entry.h |    9 ++++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/cppcheck-suppress.lst b/src/cppcheck-suppress.lst
index feb011c..1c8e20a 100644
--- a/src/cppcheck-suppress.lst
+++ b/src/cppcheck-suppress.lst
@@ -1,5 +1,4 @@
 unreadVariable:src/lib/dns/rdata/template.cc:59
-uninitVar:src/lib/nsas/nameserver_entry.h
 functionConst:src/lib/cache/message_cache.h
 functionConst:src/lib/cache/rrset_cache.h
 debug
diff --git a/src/lib/nsas/nameserver_entry.h b/src/lib/nsas/nameserver_entry.h
index c3ddcd4..f6c2e8c 100644
--- a/src/lib/nsas/nameserver_entry.h
+++ b/src/lib/nsas/nameserver_entry.h
@@ -105,7 +105,14 @@ public:
         name_(name),
         classCode_(class_code),
         expiration_(0)
-    {}
+    {
+        has_address_[V4_ONLY] = false;
+        has_address_[V6_ONLY] = false;
+        has_address_[ANY_OK] = false;
+        expect_address_[V4_ONLY] = false;
+        expect_address_[V6_ONLY] = false;
+        expect_address_[ANY_OK] = false;
+    }
 
     /*
      * \brief Return Address




More information about the bind10-changes mailing list