summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_userclass.go
diff options
context:
space:
mode:
authorOwen Mooney <owen@owenmooney.com>2018-07-29 14:14:31 +0100
committerOwen Mooney <owen@owenmooney.com>2018-07-29 14:14:31 +0100
commitb5c839d7f28cc635376d5bee36de0e898ad8a1b8 (patch)
tree86a162c084fef81cd5e6bb0d2398c62d6c9367c0 /dhcpv4/option_userclass.go
parentb30145cf5536cc1a134ad83cfce21f0b7249cf84 (diff)
Add support for modifiers to dhcpv4
Diffstat (limited to 'dhcpv4/option_userclass.go')
-rw-r--r--dhcpv4/option_userclass.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_userclass.go b/dhcpv4/option_userclass.go
index 1505dbb..307a128 100644
--- a/dhcpv4/option_userclass.go
+++ b/dhcpv4/option_userclass.go
@@ -39,7 +39,7 @@ func (op *OptUserClass) Length() int {
}
func (op *OptUserClass) String() string {
- ucStrings := make([]string, len(op.UserClasses))
+ ucStrings := make([]string, 0, len(op.UserClasses))
for _, uc := range op.UserClasses {
ucStrings = append(ucStrings, string(uc))
}