internal/dhcp4: fix error case

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-05-09 17:00:07 -04:00
parent 988aa405be
commit 411780cd8e
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94

View File

@ -100,7 +100,7 @@ func (c *Client) ObtainOrRenew() bool {
c.connection = conn
}
if c.connection == nil && c.Interface == nil {
onceErr = fmt.Errorf("Interface is nil")
onceErr = fmt.Errorf("c.Interface is nil")
return
}
if c.hardwareAddr == nil && c.HWAddr != nil {