mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
if UDP and we have a bad cookie send a immediate badcookie response
This commit is contained in:
@@ -6973,15 +6973,9 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef __notyet__
|
} else if (!TCP(client) && WANTCOOKIE(client) && !HAVECOOKIE(client)) {
|
||||||
/*
|
|
||||||
* XXXMPA Wait until BADCOOKIE is officially allocated.
|
|
||||||
* Policy knob?
|
|
||||||
*/
|
|
||||||
} else if (WANTCOOKIE(client) && !HAVECOOKIE(client)) {
|
|
||||||
client->message->rcode = dns_rcode_badcookie;
|
client->message->rcode = dns_rcode_badcookie;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!RECURSING(client) &&
|
if (!RECURSING(client) &&
|
||||||
|
Reference in New Issue
Block a user