diff --git a/lib/dns/result.c b/lib/dns/result.c index b1ed52d2bf..12e45deec6 100644 --- a/lib/dns/result.c +++ b/lib/dns/result.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: result.c,v 1.65 2000/07/13 02:41:19 bwelling Exp $ */ +/* $Id: result.c,v 1.66 2000/07/20 19:32:57 bwelling Exp $ */ #include @@ -65,7 +65,7 @@ static const char *text[DNS_R_NRESULTS] = { "more data", /* 36 */ "up to date", /* 37 */ "tsig verify failure", /* 38 */ - "tsig error set in query", /* 39 */ + "tsig indicates error", /* 39 */ "SIG failed to verify", /* 40 */ "SIG has expired", /* 41 */ "SIG validity period has not begun", /* 42 */ diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c index a96a72caee..b606594858 100644 --- a/lib/dns/tsig.c +++ b/lib/dns/tsig.c @@ -16,7 +16,7 @@ */ /* - * $Id: tsig.c,v 1.73 2000/07/18 00:46:01 bwelling Exp $ + * $Id: tsig.c,v 1.74 2000/07/20 19:32:56 bwelling Exp $ * Principal Author: Brian Wellington */ @@ -30,6 +30,7 @@ #include #include +#include #include #include #include @@ -798,14 +799,8 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg, msg->tsigstatus = dns_rcode_noerror; - if (tsig.error != dns_rcode_noerror) { - if (is_response(msg)) { - /* XXXBEW Log a message */ - return (ISC_R_SUCCESS); - } - else - return (DNS_R_TSIGERRORSET); - } + if (tsig.error != dns_rcode_noerror) + return (DNS_R_TSIGERRORSET); msg->verified_sig = 1;