Commit 35c06266 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

Don't ever send GLOBAL16 compression, not even if edns>=1. Since the

edns1 I-D has expired, no one knows what edns level 1 will mean, and it may end up not
implying support for GLOBAL16.  We are still liberal in what we accept; GLOBAL16
is accepted in packets we receive.
parent 94a08e09
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: compress.c,v 1.31 2000/05/04 22:19:00 gson Exp $ */
/* $Id: compress.c,v 1.32 2000/05/04 22:36:24 gson Exp $ */
#define DNS_NAME_USEINLINE 1
......@@ -63,7 +63,7 @@ dns_compress_init(dns_compress_t *cctx, int edns, isc_mem_t *mctx) {
cctx->allowed = 0;
cctx->rdata = 0;
cctx->global16 = (edns >= 1) ? ISC_TRUE : ISC_FALSE;
cctx->global16 = ISC_FALSE;
cctx->edns = edns;
cctx->global = NULL;
result = dns_rbt_create(mctx, free_offset, mctx, &cctx->global);
......@@ -92,8 +92,6 @@ void
dns_compress_setmethods(dns_compress_t *cctx, unsigned int allowed) {
REQUIRE(VALID_CCTX(cctx));
if (cctx->edns >= 1 && (allowed & DNS_COMPRESS_GLOBAL14) != 0)
allowed |= DNS_COMPRESS_GLOBAL16;
cctx->allowed = allowed;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment