mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
4535. [bug] Address race condition in setting / testing of
DNS_REQUEST_F_SENDING. [RT #43889]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -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]
|
4534. [bug] Only set RD, RA and CD in QUERY responses. [RT #43879]
|
||||||
|
|
||||||
4533. [bug] dns_client_update should terminate on prerequisite
|
4533. [bug] dns_client_update should terminate on prerequisite
|
||||||
|
@@ -445,10 +445,11 @@ req_send(dns_request_t *request, isc_task_t *task, isc_sockaddr_t *address) {
|
|||||||
sendevent->dscp = request->dscp;
|
sendevent->dscp = request->dscp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
request->flags |= DNS_REQUEST_F_SENDING;
|
||||||
result = isc_socket_sendto2(sock, &r, task, address, NULL,
|
result = isc_socket_sendto2(sock, &r, task, address, NULL,
|
||||||
sendevent, 0);
|
sendevent, 0);
|
||||||
if (result == ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
request->flags |= DNS_REQUEST_F_SENDING;
|
request->flags &= ~DNS_REQUEST_F_SENDING;
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user