Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions openflow15/nxt_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,8 @@ func (p *ContinuationPropStack) UnmarshalBinary(data []byte) error {
return errors.New("the []byte is too short to unmarshal a full ContinuationPropStack message")
}
n += int(p.PropHeader.Len())
for _, eachStack := range p.Stack {
data[n] = eachStack
n++
}
p.Stack = make([]byte, int(p.Length) - n)
copy(p.Stack, data[n:])
return nil
}

Expand Down