BIND 10 trac3177, updated. 6b33de4bea92eecb64b6c673bf1b8ae51f8edcf1 [3177] Pkt6Ptr is now assigned a value during initialization.

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Oct 7 11:44:20 UTC 2013


The branch, trac3177 has been updated
       via  6b33de4bea92eecb64b6c673bf1b8ae51f8edcf1 (commit)
      from  e43c23bc2d1006c2abb5dd7df7ed575cfce00451 (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 6b33de4bea92eecb64b6c673bf1b8ae51f8edcf1
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Mon Oct 7 13:44:03 2013 +0200

    [3177] Pkt6Ptr is now assigned a value during initialization.

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

Summary of changes:
 src/bin/dhcp6/tests/wireshark.cc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/tests/wireshark.cc b/src/bin/dhcp6/tests/wireshark.cc
index 2f59030..4e96548 100644
--- a/src/bin/dhcp6/tests/wireshark.cc
+++ b/src/bin/dhcp6/tests/wireshark.cc
@@ -50,7 +50,6 @@ void Dhcpv6SrvTest::captureSetDefaultFields(const Pkt6Ptr& pkt) {
 
 // This function returns buffer for very simple Solicit
 Pkt6Ptr Dhcpv6SrvTest::captureSimpleSolicit() {
-    Pkt6Ptr pkt;
     uint8_t data[] = {
         1,  // type 1 = SOLICIT
         0xca, 0xfe, 0x01, // trans-id = 0xcafe01
@@ -64,7 +63,7 @@ Pkt6Ptr Dhcpv6SrvTest::captureSimpleSolicit() {
         0, 0, 0, 0  // T2 = 0
     };
 
-    pkt.reset(new Pkt6(data, sizeof(data)));
+    Pkt6Ptr pkt(new Pkt6(data, sizeof(data)));
     captureSetDefaultFields(pkt);
 
     return (pkt);



More information about the bind10-changes mailing list