2866. [bug] Windows does not like the TSIG name being compressed.

[RT #20986]
This commit is contained in:
Mark Andrews
2010-03-12 03:39:34 +00:00
parent fb8c4a6bc9
commit e163b0fe68
4 changed files with 15 additions and 3 deletions
+3
View File
@@ -1,3 +1,6 @@
2866. [bug] Windows does not like the TSIG name being compressed.
[RT #20986]
2865. [bug] memset to zero event.data. [RT #20986]
2864. [bug] Direct SIG/RRSIG queries were not handled correctly.
+5 -1
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nsupdate.c,v 1.163.48.5 2010/03/09 23:48:30 tbox Exp $ */
/* $Id: nsupdate.c,v 1.163.48.6 2010/03/12 03:39:34 marka Exp $ */
/*! \file */
@@ -1985,6 +1985,10 @@ send_update(dns_name_t *zonename, isc_sockaddr_t *master,
fprintf(stderr, "Sending update to %s\n", addrbuf);
}
/* Windows doesn't like the tsig name to be compressed. */
if (updatemsg->tsigname)
updatemsg->tsigname->attributes |= DNS_NAMEATTR_NOCOMPRESS;
result = dns_request_createvia3(requestmgr, updatemsg, srcaddr,
master, options, tsigkey, timeout,
udp_timeout, udp_retries, global_task,
+3 -1
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: message.c,v 1.245.50.3 2009/11/24 03:25:53 marka Exp $ */
/* $Id: message.c,v 1.245.50.4 2010/03/12 03:39:34 marka Exp $ */
/*! \file */
@@ -1531,6 +1531,8 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
} else if (rdtype == dns_rdatatype_tsig && msg->tsig == NULL) {
msg->tsig = rdataset;
msg->tsigname = name;
/* Windows doesn't like TSIG names to be compressed. */
msg->tsigname->attributes |= DNS_NAMEATTR_NOCOMPRESS;
rdataset = NULL;
free_rdataset = ISC_FALSE;
free_name = ISC_FALSE;
+4 -1
View File
@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.136 2008/11/04 21:23:14 marka Exp $
* $Id: tsig.c,v 1.136.18.1 2010/03/12 03:39:34 marka Exp $
*/
/*! \file */
#include <config.h>
@@ -889,6 +889,9 @@ dns_tsig_sign(dns_message_t *msg) {
msg->tsig = dataset;
msg->tsigname = owner;
/* Windows does not like the tsig name being compressed. */
msg->tsigname->attributes |= DNS_NAMEATTR_NOCOMPRESS;
return (ISC_R_SUCCESS);
cleanup_rdatalist: