mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s4-dns: Remove sync dns_process
Signed-off-by: Kai Blin <kai@samba.org>
This commit is contained in:
committed by
Kai Blin
parent
d4998ccce7
commit
d5ce36b148
@ -234,30 +234,6 @@ drop:
|
|||||||
return WERR_OK;
|
return WERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static WERROR dns_process(struct dns_server *dns, TALLOC_CTX *mem_ctx,
|
|
||||||
DATA_BLOB *in, DATA_BLOB *out)
|
|
||||||
{
|
|
||||||
struct tevent_context *ev;
|
|
||||||
struct tevent_req *req;
|
|
||||||
WERROR err = WERR_NOMEM;
|
|
||||||
|
|
||||||
ev = tevent_context_init(talloc_tos());
|
|
||||||
if (ev == NULL) {
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
req = dns_process_send(ev, ev, dns, in);
|
|
||||||
if (req == NULL) {
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
if (!tevent_req_poll_werror(req, ev, &err)) {
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
err = dns_process_recv(req, mem_ctx, out);
|
|
||||||
fail:
|
|
||||||
TALLOC_FREE(ev);
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct dns_tcp_call {
|
struct dns_tcp_call {
|
||||||
struct dns_tcp_connection *dns_conn;
|
struct dns_tcp_connection *dns_conn;
|
||||||
DATA_BLOB in;
|
DATA_BLOB in;
|
||||||
|
Reference in New Issue
Block a user