From 28b5219ad9abcefbee7c466ae42901d0e0d207ca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 24 May 2012 16:46:29 +0200 Subject: s4-dns: Remove unused sync ask_forwarder wrapper Signed-off-by: Kai Blin --- source4/dns_server/dns_query.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'source4/dns_server') diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index 65f770cacd..037dc6a505 100644 --- a/source4/dns_server/dns_query.c +++ b/source4/dns_server/dns_query.c @@ -240,36 +240,6 @@ static WERROR ask_forwarder_recv( return WERR_OK; } -static WERROR ask_forwarder(struct dns_server *dns, - TALLOC_CTX *mem_ctx, - struct dns_name_question *question, - struct dns_res_rec **answers, uint16_t *ancount, - struct dns_res_rec **nsrecs, uint16_t *nscount, - struct dns_res_rec **additional, uint16_t *arcount) -{ - struct tevent_context *ev; - struct tevent_req *req; - WERROR err = WERR_NOMEM; - - ev = tevent_context_init(talloc_tos()); - if (ev == NULL) { - goto fail; - } - req = ask_forwarder_send( - ev, ev, lpcfg_dns_forwarder(dns->task->lp_ctx), question); - if (req == NULL) { - goto fail; - } - if (!tevent_req_poll_werror(req, ev, &err)) { - goto fail; - } - err = ask_forwarder_recv(req, mem_ctx, answers, ancount, - nsrecs, nscount, additional, arcount); -fail: - TALLOC_FREE(ev); - return err; -} - static WERROR handle_question(struct dns_server *dns, TALLOC_CTX *mem_ctx, const struct dns_name_question *question, -- cgit