2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

4535. [bug] Address race condition in setting / testing of

DNS_REQUEST_F_SENDING. [RT #43889]
This commit is contained in:
Mark Andrews
2016-12-14 10:31:26 +11:00
parent 45f03878c9
commit 37a8db0ba4
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
4535. [bug] Address race condition in setting / testing of
DNS_REQUEST_F_SENDING. [RT #43889]
4534. [bug] Only set RD, RA and CD in QUERY responses. [RT #43879]
4533. [bug] dns_client_update should terminate on prerequisite

View File

@@ -445,10 +445,11 @@ req_send(dns_request_t *request, isc_task_t *task, isc_sockaddr_t *address) {
sendevent->dscp = request->dscp;
}
request->flags |= DNS_REQUEST_F_SENDING;
result = isc_socket_sendto2(sock, &r, task, address, NULL,
sendevent, 0);
if (result == ISC_R_SUCCESS)
request->flags |= DNS_REQUEST_F_SENDING;
if (result != ISC_R_SUCCESS)
request->flags &= ~DNS_REQUEST_F_SENDING;
return (result);
}