mirror of
https://github.com/danderson/netboot.git
synced 2026-05-05 04:16:34 +02:00
dhcp4: fix missing switch case.
This commit is contained in:
parent
8dfa75434e
commit
f4ee0d5314
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user