1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

s4-dns: Remove sync dns_process

Signed-off-by: Kai Blin <kai@samba.org>
This commit is contained in:
Volker Lendecke
2012-05-29 10:03:13 +02:00
committed by Kai Blin
parent d4998ccce7
commit d5ce36b148

View File

@ -234,30 +234,6 @@ drop:
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_connection *dns_conn;
DATA_BLOB in;