BIND 10 trac2124, updated. 26401e4e861462c03f689c32f97f49d582a64a5b [2124] don't keep a reference to a temporary object.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jul 26 07:13:42 UTC 2012


The branch, trac2124 has been updated
       via  26401e4e861462c03f689c32f97f49d582a64a5b (commit)
      from  31477bf85002788f773532657e00cdf8e11a1995 (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 26401e4e861462c03f689c32f97f49d582a64a5b
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Thu Jul 26 00:12:15 2012 -0700

    [2124] don't keep a reference to a temporary object.
    
    'rdf' in the original code immediately became dangling reference.

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

Summary of changes:
 src/lib/dns/tests/rdata_sshfp_unittest.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rdata_sshfp_unittest.cc b/src/lib/dns/tests/rdata_sshfp_unittest.cc
index 0a6c75e..b6f13f6 100644
--- a/src/lib/dns/tests/rdata_sshfp_unittest.cc
+++ b/src/lib/dns/tests/rdata_sshfp_unittest.cc
@@ -183,7 +183,7 @@ TEST_F(Rdata_SSHFP_Test, getFingerprintLen) {
 }
 
 TEST_F(Rdata_SSHFP_Test, emptyFingerprintFromWire) {
-    const generic::SSHFP& rdf =
+    const generic::SSHFP rdf =
         dynamic_cast<const generic::SSHFP&>
         (*rdataFactoryFromFile(RRType("SSHFP"), RRClass("IN"),
                                "rdata_sshfp_fromWire12"));



More information about the bind10-changes mailing list