summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/pkt4.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-06-27 13:20:22 +0200
committerFrancis Dupont <fdupont@isc.org>2015-06-27 13:20:22 +0200
commit65c611f2817ec98c230520b7eba6c4c2d51c34e7 (patch)
tree4f9a0c95d0fa7905e8613e6ba0a313fe7110044c /src/lib/dhcp/pkt4.cc
parent[3920] Removed reinit of data_ (diff)
downloadkea-65c611f2817ec98c230520b7eba6c4c2d51c34e7.tar.xz
kea-65c611f2817ec98c230520b7eba6c4c2d51c34e7.zip
[3920] Applied proposed cleanup of Pkt{,4} buf/len constructor
Diffstat (limited to 'src/lib/dhcp/pkt4.cc')
-rw-r--r--src/lib/dhcp/pkt4.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/dhcp/pkt4.cc b/src/lib/dhcp/pkt4.cc
index c56c166959..1a406f87c9 100644
--- a/src/lib/dhcp/pkt4.cc
+++ b/src/lib/dhcp/pkt4.cc
@@ -74,9 +74,6 @@ Pkt4::Pkt4(const uint8_t* data, size_t len)
isc_throw(OutOfRange, "Truncated DHCPv4 packet (len=" << len
<< ") received, at least " << DHCPV4_PKT_HDR_LEN
<< " is expected.");
-
- } else if (data == NULL) {
- isc_throw(InvalidParameter, "data buffer passed to Pkt4 is NULL");
}
}