diff options
-rw-r--r-- | dhcpv4/option_userclass.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_userclass.go b/dhcpv4/option_userclass.go index 3115647..1505dbb 100644 --- a/dhcpv4/option_userclass.go +++ b/dhcpv4/option_userclass.go @@ -75,7 +75,7 @@ func ParseOptUserClass(data []byte) (*OptUserClass, error) { if len(data) < base+ucLen { return nil, fmt.Errorf("ParseOptUserClass: short data: %d bytes; want: %d", len(data), base+ucLen) } - opt.UserClasses = append(opt.UserClasses, data[i+1:base+ucLen]) + opt.UserClasses = append(opt.UserClasses, data[base:base+ucLen]) i += base + ucLen } if len(opt.UserClasses) < 1 { |