]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3389. [bug] Always return NOERROR (not 0) in TSIG. [RT #31275]
authorMark Andrews <marka@isc.org>
Thu, 4 Oct 2012 20:57:05 +0000 (06:57 +1000)
committerMark Andrews <marka@isc.org>
Thu, 4 Oct 2012 20:57:05 +0000 (06:57 +1000)
CHANGES
lib/dns/rdata/any_255/tsig_250.c

diff --git a/CHANGES b/CHANGES
index e7d71ce5f0e600a44df4827c7f8e7544fcea1143..2178b6a80f02676374305e49062312bb889c9e46 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3389.  [bug]           Always return NOERROR (not 0) in TSIG. [RT #31275]
+
 3388.  [bug]           Fixed several Coverity warnings. [RT #30996]
 
 3387.  [func]          DS digest can be disabled at runtime with
index 3691121ddc8111ef63db3b5e5e42422c2716da25..1d0a836bfa88d6d39c74cd900c4581204bddda64 100644 (file)
@@ -226,12 +226,7 @@ totext_any_tsig(ARGS_TOTEXT) {
         */
        n = uint16_fromregion(&sr);
        isc_region_consume(&sr, 2);
-       if (dns_tsigrcode_totext((dns_rcode_t)n, target) == ISC_R_SUCCESS)
-               RETERR(str_totext(" ", target));
-       else {
-               sprintf(buf, "%u ", n);
-               RETERR(str_totext(buf, target));
-       }
+       RETERR(dns_tsigrcode_totext((dns_rcode_t)n, target));
 
        /*
         * Other Size.