From: Mark Andrews Date: Wed, 8 Jul 2015 02:57:29 +0000 (+1000) Subject: future cookie code X-Git-Tag: v9.11.0a1~669 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8f98ec8d4dfe50e39b667f9d8c8c91804976ddc;p=thirdparty%2Fbind9.git future cookie code --- diff --git a/bin/named/query.c b/bin/named/query.c index 57fd1cfbad6..98cc9a86771 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -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) &&