]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3920] Removed reinit of data_
authorFrancis Dupont <fdupont@isc.org>
Sat, 27 Jun 2015 11:13:02 +0000 (13:13 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 27 Jun 2015 11:13:02 +0000 (13:13 +0200)
src/lib/dhcp/pkt4.cc

index c4d60ebe6de5c8d9d46720a2a22a2f7cfa4eb0f8..c56c166959e5dec47bd1070dfca2078f45ddca1d 100644 (file)
@@ -78,9 +78,6 @@ Pkt4::Pkt4(const uint8_t* data, size_t len)
     } else if (data == NULL) {
         isc_throw(InvalidParameter, "data buffer passed to Pkt4 is NULL");
     }
-
-    data_.resize(len);
-    memcpy(&data_[0], data, len);
 }
 
 size_t