Bugzilla – Bug 524
max-udp-size not effective to non-EDNS0 queries.
Last modified: 2013-09-16 11:07:50 CEST
Created attachment 238 [details]
(This is Unbound-trunk/1.4.21-RC bug)
max-udp-size (especially < 512) is not effective to non-EDNS0 queries.
How to produce:
- set unbound.conf "max-udp-size: 20"
- dig @::1 unbound.net +ignore +noedns
-> Unbound returns normal reply. It should be TC reply because obviously reply size exceeds 20bytes.
Here is a patch. Note that this patch also checks "edns.bufsize < LDNS_HEADER_SIZE" for non-EDNS0 queries too.
Committed and it may make it into the 1.4.21 release :-)
Thanks for the fast bug report,