From e8f98ec8d4dfe50e39b667f9d8c8c91804976ddc Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 8 Jul 2015 12:57:29 +1000 Subject: [PATCH] future cookie code --- bin/named/query.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/named/query.c b/bin/named/query.c index 57fd1cfbad..98cc9a8677 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) &&