]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
future cookie code
authorMark Andrews <marka@isc.org>
Wed, 8 Jul 2015 02:57:29 +0000 (12:57 +1000)
committerMark Andrews <marka@isc.org>
Wed, 8 Jul 2015 02:57:29 +0000 (12:57 +1000)
bin/named/query.c

index 57fd1cfbad684ab5d3417a942fbf8442d02dd19b..98cc9a867718e9cdae7c7d62f774fc5084f904a7 100644 (file)
@@ -6973,6 +6973,15 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
                                goto cleanup;
                        }
                }
+#ifdef __notyet__
+       /*
+        * XXXMPA Wait until BADCOOKIE is officially allocated.
+        * Policy knob?
+        */
+       } else if (WANTCOOKIE(client) && !HAVECOOKIE(client)) {
+               client->message->rcode = dns_rcode_badcookie;
+               goto cleanup;
+#endif
        }
 
        if (!RECURSING(client) &&