Skip to content

Commit

Permalink
Add missing EDNS0EXPIRE data unpack (#1054)
Browse files Browse the repository at this point in the history
Automatically submitted.
  • Loading branch information
austinoh authored and cbot[bot] committed Dec 19, 2019
1 parent a72e5ce commit b3cafcb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions msg_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,13 @@ Option:
}
edns = append(edns, e)
off += int(optlen)
case EDNS0EXPIRE:
e := new(EDNS0_EXPIRE)
if err := e.unpack(msg[off : off+int(optlen)]); err != nil {
return nil, len(msg), err
}
edns = append(edns, e)
off += int(optlen)
case EDNS0UL:
e := new(EDNS0_UL)
if err := e.unpack(msg[off : off+int(optlen)]); err != nil {
Expand Down

0 comments on commit b3cafcb

Please sign in to comment.