mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-23 02:04:55 +02:00
- Fix that when a partial EDNS option is in a query, the
response is a more RFC conformant FORMERR, since the EDNS option is malformed. Also fix to have an EDNS size for the reply error encoding for failed EDNS parse of the query. Thanks to Qifan Zhang, Palo Alto Networks, for the report.
This commit is contained in:
+18
@@ -53,4 +53,22 @@ SECTION QUESTION
|
||||
test. IN TXT
|
||||
ENTRY_END
|
||||
|
||||
; Check an EDNS option with a too short content
|
||||
; The EDNS OPT rdata is too short, for the option opt_len.
|
||||
STEP 30 QUERY
|
||||
ENTRY_BEGIN
|
||||
REPLY RD
|
||||
SECTION QUESTION
|
||||
test. IN TXT
|
||||
SECTION ADDITIONAL
|
||||
. 32768 CLASS1230 OPT \# 04 00 0a 00 08
|
||||
ENTRY_END
|
||||
STEP 31 CHECK_ANSWER
|
||||
ENTRY_BEGIN
|
||||
MATCH all
|
||||
REPLY QR RD RA DO FORMERR
|
||||
SECTION QUESTION
|
||||
test. IN TXT
|
||||
ENTRY_END
|
||||
|
||||
SCENARIO_END
|
||||
|
||||
Reference in New Issue
Block a user