Pull request: all: rm var shadowing vol. 3
Updates #2803. Squashed commit of the following: commit ce711ae2e08c3714a4e0c6d177c02f7801c05fce Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 11 20:58:40 2021 +0300 all: imp code, docs commit e91094e461893c27eda879b33b5ed2c7085510df Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 11 20:42:14 2021 +0300 all: rm var shadowing vol. 3
This commit is contained in:
@@ -188,20 +188,20 @@ func (ra *raCtx) Init() error {
|
||||
}
|
||||
defer func() {
|
||||
if !success {
|
||||
cerr := ra.Close()
|
||||
if cerr != nil {
|
||||
log.Error("closing context: %s", cerr)
|
||||
derr := ra.Close()
|
||||
if derr != nil {
|
||||
log.Error("closing context: %s", derr)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
con6 := ra.conn.IPv6PacketConn()
|
||||
|
||||
if err := con6.SetHopLimit(255); err != nil {
|
||||
if err = con6.SetHopLimit(255); err != nil {
|
||||
return fmt.Errorf("dhcpv6 ra: SetHopLimit: %w", err)
|
||||
}
|
||||
|
||||
if err := con6.SetMulticastHopLimit(255); err != nil {
|
||||
if err = con6.SetMulticastHopLimit(255); err != nil {
|
||||
return fmt.Errorf("dhcpv6 ra: SetMulticastHopLimit: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user