Commit 37a8db0b authored by Mark Andrews's avatar Mark Andrews
Browse files

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

                        DNS_REQUEST_F_SENDING. [RT #43889]
parent 45f03878
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
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment