mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 14:49:20 -04:00
if UDP and we have a bad cookie send a immediate badcookie response
This commit is contained in:
parent
46e7fc51b8
commit
b485d0a67f
1 changed files with 1 additions and 7 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue