Add missing EDNS0EXPIRE data unpack (#1054)

Automatically submitted.
This commit is contained in:
Austin Oh 2019-12-18 23:52:02 -08:00 committed by cbot[bot]
parent a72e5ceb18
commit b3cafcb268
1 changed files with 7 additions and 0 deletions

View File

@ -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 {