mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
4535. [bug] Address race condition in setting / testing of
DNS_REQUEST_F_SENDING. [RT #43889]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user