dhcp4: fix missing switch case.

This commit is contained in:
David Anderson 2016-06-18 16:44:59 -07:00
parent 8dfa75434e
commit f4ee0d5314

View File

@ -330,6 +330,7 @@ func Unmarshal(bs []byte) (*Packet, error) {
return nil, fmt.Errorf("BOOTP message type (%d) doesn't match DHCP message type (%s", bs[0], ret.Type)
}
default:
return nil, fmt.Errorf("Unknown DHCP message type %d", ret.Type)
}
return ret, nil