]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
reduce MAX_RESTARTS to 11
authorEvan Hunt <each@isc.org>
Tue, 25 Jun 2024 19:28:23 +0000 (12:28 -0700)
committerOndřej Surý <ondrej@isc.org>
Tue, 20 Aug 2024 17:35:07 +0000 (17:35 +0000)
the number of steps that can be followed in a CNAME chain
before terminating the lookup has been reduced from 16 to 11.
(this is a hard-coded value, but will be made configurable later.)

(cherry picked from commit 05d78671bb6a5ba63d78d77339e17cbc73f18188)
(cherry picked from commit dd88a4cdfc8042e2cd2fdae93b803ba8490b88dc)

bin/tests/system/chain/tests.sh
lib/dns/client.c
lib/ns/query.c

index 8d28b3b5e08e63b8e8cc80d612f69f49940530a3..9610f04433b94e2fd23abc00b02659b7dd05bf18 100644 (file)
@@ -439,7 +439,7 @@ ret=0
 $RNDCCMD 10.53.0.7 null --- start test$n --- 2>&1 | sed 's/^/ns7 /' | cat_i
 $DIG $DIGOPTS @10.53.0.7 loop.example >dig.out.test$n
 grep "status: NOERROR" dig.out.test$n >/dev/null || ret=1
-grep "ANSWER: 17" dig.out.test$n >/dev/null || ret=1
+grep "ANSWER: 12" dig.out.test$n >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$(expr $status + $ret)
 
index 9cfc810e47392346879bd138520a9691dc97513a..686b17c953d14b1855031bb78132707eeb31051c 100644 (file)
@@ -61,7 +61,7 @@
 #define UCTX_MAGIC    ISC_MAGIC('U', 'c', 't', 'x')
 #define UCTX_VALID(c) ISC_MAGIC_VALID(c, UCTX_MAGIC)
 
-#define MAX_RESTARTS 16
+#define MAX_RESTARTS 11
 
 #ifdef TUNE_LARGE
 #define RESOLVER_NTASKS 523
index ec9bf5b7692990cadf1a74295a45819a1a25ea3f..ce1d8f38ed9bdd6d71a97b55b0456cbd2631063c 100644 (file)
@@ -86,7 +86,7 @@
  * Maximum number of chained queries before we give up
  * to prevent CNAME loops.
  */
-#define MAX_RESTARTS 16
+#define MAX_RESTARTS 11
 
 #define QUERY_ERROR(qctx, r)                  \
        do {                                  \