From 73ca529d3079e0704e2d3901d4ead1591f6ccf72 Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Tue, 1 May 2018 23:25:29 +0100 Subject: Corrected variable name --- dhcpv6/dhcpv6relay.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go index 2deef5c..0ccdf72 100644 --- a/dhcpv6/dhcpv6relay.go +++ b/dhcpv6/dhcpv6relay.go @@ -123,9 +123,9 @@ func (r *DHCPv6Relay) AddOption(option Option) { // UpdateOption replaces the first option of the same type as the specified one. func (r *DHCPv6Relay) UpdateOption(option Option) { - for idx, opt := range d.options { + for idx, opt := range r.options { if opt.Code() == option.Code() { - d.options[idx] = option + r.options[idx] = option // don't look further break } -- cgit v1.2.3