442.   [bug]           TSIG signed messages that did not match any view
                        crashed the server. [RT #290]
This commit is contained in:
Andreas Gustafsson
2000-09-11 17:56:07 +00:00
parent fea1d23d75
commit 77d0347a26
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
442. [bug] TSIG signed messages that did not match any view
crashed the server. [RT #290]
436. [bug] If recvmsg() returned EHOSTUNREACH or ENETUNREACH,
which sometimes happens on Linux, named would enter

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: message.c,v 1.131.2.7 2000/09/07 22:39:03 gson Exp $ */
/* $Id: message.c,v 1.131.2.8 2000/09/11 17:56:07 gson Exp $ */
/***
*** Imports
@@ -2207,7 +2207,7 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
* This saves the query TSIG status, if the query was signed, and
* reserves space in the reply for the TSIG.
*/
if (msg->querytsig != NULL) {
if (msg->tsigkey != NULL) {
unsigned int otherlen = 0;
msg->querytsigstatus = msg->tsigstatus;
msg->tsigstatus = dns_rcode_noerror;