misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-20 05:08:15 +01:00
commit 661e46a346

View file

@ -22,6 +22,7 @@ func DHCP6EncodeList(elements []string) (encoded []byte) {
encoded = make([]byte, 0)
for _, elem := range elements {
// this would be worth fuzzing btw
encoded = append(encoded, byte(len(elem)&0xff))
encoded = append(encoded, []byte(elem)...)
}