Commit 230aff0e authored by Brian Wellington's avatar Brian Wellington
Browse files

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.
parent 7d7c5eee
......@@ -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;
......
Markdown is supported
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