diff --git a/netboot/netconf.go b/netboot/netconf.go index 6370b5dc..80933044 100644 --- a/netboot/netconf.go +++ b/netboot/netconf.go @@ -192,7 +192,7 @@ func ConfigureInterface(ifname string, netconf *NetConf) (err error) { return err } defer func() { - if cerr := rt.Close(); err != nil { + if cerr := rt.Close(); cerr != nil { err = cerr } }() diff --git a/netboot/netconf_integ_test.go b/netboot/netconf_integ_test.go index a0af291c..d537f920 100644 --- a/netboot/netconf_integ_test.go +++ b/netboot/netconf_integ_test.go @@ -55,7 +55,7 @@ func TestConfigureInterface(t *testing.T) { Name: "IP addr, DNS, and routers", NetConf: &NetConf{ Addresses: []AddrConf{ - AddrConf{IPNet: net.IPNet{IP: net.ParseIP("10.20.30.40")}}, + AddrConf{IPNet: net.IPNet{IP: net.ParseIP("10.20.30.41")}}, }, DNSServers: []net.IP{net.ParseIP("8.8.8.8")}, DNSSearchList: []string{"slackware.it"},