From 230aff0eac2d6694c6ca5925b663789e68f267c9 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Sat, 9 Sep 2000 10:46:58 +0000 Subject: [PATCH] Fix the crash caused by a signed message not matching any view [RT #290]. This fixes the crash, but not the real problem, which is that the TSIG needs to be verified even if there is no matching view. --- lib/dns/message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 3c58f5652b..c9512a5339 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: message.c,v 1.143 2000/09/07 21:08:51 bwelling Exp $ */ +/* $Id: message.c,v 1.144 2000/09/09 10:46:58 bwelling Exp $ */ /*** *** Imports @@ -2198,7 +2198,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;