summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/ztp/ztp.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/ztp/ztp.go')
-rw-r--r--dhcpv4/ztp/ztp.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpv4/ztp/ztp.go b/dhcpv4/ztp/ztp.go
index 779af46..3d19bc3 100644
--- a/dhcpv4/ztp/ztp.go
+++ b/dhcpv4/ztp/ztp.go
@@ -33,7 +33,7 @@ func parseV4VendorClass(packet *dhcpv4.DHCPv4) (*VendorData, error) {
opt := packet.GetOneOption(dhcpv4.OptionClassIdentifier)
if opt == nil {
- return vd, nil
+ return nil, nil
}
vc := opt.(*dhcpv4.OptClassIdentifier).Identifier
@@ -87,6 +87,6 @@ func parseV4VendorClass(packet *dhcpv4.DHCPv4) (*VendorData, error) {
return vd, nil
}
- // We didn't match anything, just return an empty vendor data.
- return vd, nil
+ // We didn't match anything.
+ return nil, nil
}