Skip to content

Commit

Permalink
Merge pull request wmnsk#43 from ajamshed/patch-2
Browse files Browse the repository at this point in the history
Fix minimum OuterHeaderRemoval payload is 1
  • Loading branch information
wmnsk authored Jul 5, 2020
2 parents be1dd14 + 78b3fd7 commit 99a4fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ie/outer-header-removal.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func NewOuterHeaderRemoval(desc, ext uint8) *IE {

// OuterHeaderRemoval returns OuterHeaderRemoval in []byte if the type of IE matches.
func (i *IE) OuterHeaderRemoval() ([]byte, error) {
if len(i.Payload) < 2 {
if len(i.Payload) < 1 {
return nil, io.ErrUnexpectedEOF
}

Expand Down

0 comments on commit 99a4fae

Please sign in to comment.