Merge branch '881-cleanup-ecs-v9_14' into 'v9_14'

clean up ECS before reusing clients

See merge request isc-projects/bind9!1676
This commit is contained in:
Evan Hunt 2019-03-12 17:10:04 -04:00
commit e658e92ada
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,6 @@
5183. [bug] Reinitialize ECS data before reusing client
structures. [GL #881]
5182. [bug] Fix a high-load race/crash in handling of
isc_socket_close() in resolver. [GL #834]

View file

@ -765,6 +765,7 @@ ns_client_endrequest(ns_client_t *client) {
client->udpsize = 512;
client->extflags = 0;
client->ednsversion = -1;
dns_ecs_init(&client->ecs);
dns_message_reset(client->message, DNS_MESSAGE_INTENTPARSE);
if (client->recursionquota != NULL) {