mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 13:59:27 -04:00
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.
This commit is contained in:
parent
7d7c5eee34
commit
230aff0eac
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue