]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Map DNS_R_BADTSIG to FORMERR
authorMark Andrews <marka@isc.org>
Wed, 22 Jul 2020 23:47:49 +0000 (09:47 +1000)
committerMark Andrews <marka@isc.org>
Tue, 4 Aug 2020 12:20:37 +0000 (12:20 +0000)
Now that the log message has been printed set the result code to
DNS_R_FORMERR.  We don't do this via dns_result_torcode() as we
don't want upstream errors to produce FORMERR if that processing
end with DNS_R_BADTSIG.

lib/ns/client.c

index 6b00dae8894b607cccd817429cd6aa999903e22b..7e1bde987503b8af11121d78cc459b5dc518eaeb 100644 (file)
@@ -1827,7 +1827,7 @@ ns__client_request(isc_nmhandle_t *handle, isc_result_t eresult,
                              NS_LOGMODULE_CLIENT, ISC_LOG_DEBUG(1),
                              "message parsing failed: %s",
                              isc_result_totext(result));
-               if (result == ISC_R_NOSPACE) {
+               if (result == ISC_R_NOSPACE || result == DNS_R_BADTSIG) {
                        result = DNS_R_FORMERR;
                }
                ns_client_error(client, result);