From: Tomek Mrugalski Date: Mon, 7 Oct 2013 11:44:03 +0000 (+0200) Subject: [3177] Pkt6Ptr is now assigned a value during initialization. X-Git-Tag: bind10-1.2.0beta1-release~191^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b33de4bea92eecb64b6c673bf1b8ae51f8edcf1;p=thirdparty%2Fkea.git [3177] Pkt6Ptr is now assigned a value during initialization. --- diff --git a/src/bin/dhcp6/tests/wireshark.cc b/src/bin/dhcp6/tests/wireshark.cc index 2f590300b2..4e96548129 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);