diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-07-30 19:05:13 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2018-07-30 19:05:13 +0200 |
commit | c3434f38325856dcdc19adc29b5e31944614221b (patch) | |
tree | 5abc251f8c193556af9055f873e2fbc200b5813e /dhcpv4/option_ip_address_lease_time.go | |
parent | 6cf562816e82894ad1b0eb86923b5bcb7b7d2962 (diff) |
fix OptIPAddressLeaseTime
Diffstat (limited to 'dhcpv4/option_ip_address_lease_time.go')
-rw-r--r-- | dhcpv4/option_ip_address_lease_time.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_ip_address_lease_time.go b/dhcpv4/option_ip_address_lease_time.go index a171b04..7562c58 100644 --- a/dhcpv4/option_ip_address_lease_time.go +++ b/dhcpv4/option_ip_address_lease_time.go @@ -17,7 +17,7 @@ type OptIPAddressLeaseTime struct { // sequence of bytes and returns it, or an error. func ParseOptIPAddressLeaseTime(data []byte) (*OptIPAddressLeaseTime, error) { // Should at least have code, length, and lease time. - if len(data) < 4 { + if len(data) < 6 { return nil, ErrShortByteStream } code := OptionCode(data[0]) |