mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Check for edns1 and strict decompression once and for all in
dns_[de]compress_setmethods instead of separately in every caller
This commit is contained in:
@@ -1375,11 +1375,7 @@ dns_message_parse(dns_message_t *msg, isc_buffer_t *source,
|
||||
*/
|
||||
dns_decompress_init(&dctx, -1, ISC_FALSE);
|
||||
|
||||
if (dns_decompress_edns(&dctx) > 1 || !dns_decompress_strict(&dctx))
|
||||
dns_decompress_setmethods(&dctx, DNS_COMPRESS_GLOBAL);
|
||||
else
|
||||
dns_decompress_setmethods(&dctx, DNS_COMPRESS_GLOBAL14);
|
||||
|
||||
dns_decompress_setmethods(&dctx, DNS_COMPRESS_GLOBAL14);
|
||||
|
||||
ret = getquestions(source, msg, &dctx);
|
||||
if (ret != ISC_R_SUCCESS)
|
||||
|
Reference in New Issue
Block a user