summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-24 16:46:29 +0200
committerKai Blin <kai@samba.org>2012-05-30 00:37:57 +0200
commit28b5219ad9abcefbee7c466ae42901d0e0d207ca (patch)
treecf8764e2a4d4d07fe6eb621011ca99a0adc517a8 /source4/dns_server
parent03b35211ab7ca659edf1f23fe84b49f0b3ee6ab5 (diff)
downloadsamba-28b5219ad9abcefbee7c466ae42901d0e0d207ca.tar.gz
samba-28b5219ad9abcefbee7c466ae42901d0e0d207ca.tar.bz2
samba-28b5219ad9abcefbee7c466ae42901d0e0d207ca.zip
s4-dns: Remove unused sync ask_forwarder wrapper
Signed-off-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dns_query.c30
1 files changed, 0 insertions, 30 deletions
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,