Module Name: src Committed By: christos Date: Tue Nov 11 03:29:24 UTC 2014
Modified Files: src/lib/libc/resolv: res_mkquery.c Log Message: PR/48475: YAMAGUCHI Takanori: EDNS option broken with unbound. struct querybuf in net/gethnamaddr.c defines MAXPACKET to 64K. This in turn gets passed down until it reached res_nopt(..., answer, anslen), where the size of the buffer must fit in 16 bits. Unfortunately we end up being one more than the max so we end up sending a 0 as the size and unbound does not like that. Instead we clip now to 64K - 1, and everyone is happy. XXX: Pullup to 7. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libc/resolv/res_mkquery.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.