internal/dhcp4: fix error case
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
988aa405be
commit
411780cd8e
@ -100,7 +100,7 @@ func (c *Client) ObtainOrRenew() bool {
|
|||||||
c.connection = conn
|
c.connection = conn
|
||||||
}
|
}
|
||||||
if c.connection == nil && c.Interface == nil {
|
if c.connection == nil && c.Interface == nil {
|
||||||
onceErr = fmt.Errorf("Interface is nil")
|
onceErr = fmt.Errorf("c.Interface is nil")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if c.hardwareAddr == nil && c.HWAddr != nil {
|
if c.hardwareAddr == nil && c.HWAddr != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user