2
0
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:
Andreas Gustafsson
2000-05-04 22:19:34 +00:00
parent fd63a046d6
commit 94a08e09db
30 changed files with 88 additions and 266 deletions

View File

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