2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

if UDP and we have a bad cookie send a immediate badcookie response

This commit is contained in:
Mark Andrews
2015-07-27 15:42:03 +10:00
parent 46e7fc51b8
commit b485d0a67f

View File

@@ -6973,15 +6973,9 @@ 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)) {
} else if (!TCP(client) && WANTCOOKIE(client) && !HAVECOOKIE(client)) {
client->message->rcode = dns_rcode_badcookie;
goto cleanup;
#endif
}
if (!RECURSING(client) &&