]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
othererror should not include badvers now that we have a badvers counter
authorMark Andrews <marka@isc.org>
Tue, 25 Mar 2014 05:46:11 +0000 (16:46 +1100)
committerMark Andrews <marka@isc.org>
Tue, 25 Mar 2014 05:46:11 +0000 (16:46 +1100)
lib/dns/resolver.c

index 6142f53367c1bd38efb6548bc81845190cd63f96..11c805f7e8ff3af214d20114a250bb7f678d782e 100644 (file)
@@ -7441,6 +7441,9 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
                case dns_rcode_refused:
                        inc_stats(fctx->res, dns_resstatscounter_refused);
                        break;
+               case dns_rcode_badvers:
+                       inc_stats(fctx->res, dns_resstatscounter_badvers);
+                       break;
                default:
                        inc_stats(fctx->res, dns_resstatscounter_othererror);
                        break;
@@ -7507,11 +7510,7 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
                        unsigned int version;
 #ifdef ISC_PLATFORM_USESIT
                        unsigned char sit[64];
-#endif
 
-                       inc_stats(fctx->res, dns_resstatscounter_badvers);
-
-#ifdef ISC_PLATFORM_USESIT
                        /*
                         * Some servers return BADVERS to unknown
                         * EDNS options.  This cannot be long term