summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_subdomains.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-11 15:42:05 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-21 22:17:34 +0100
commit99151f2217ddaa179543b89b49f836f29f7dcd2a (patch)
treed003edef0a11fffe3ba3935df077e60280abf959 /src/providers/ipa/ipa_subdomains.c
parent8e5549e453558d4bebdec333a93e215d5d6ffaec (diff)
downloadsssd-99151f2217ddaa179543b89b49f836f29f7dcd2a.tar.gz
sssd-99151f2217ddaa179543b89b49f836f29f7dcd2a.tar.bz2
sssd-99151f2217ddaa179543b89b49f836f29f7dcd2a.zip
Add be_req_create() helper
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.c')
-rw-r--r--src/providers/ipa/ipa_subdomains.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 70806bb4..e234ca1b 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -928,9 +928,8 @@ static void ipa_subdom_online_cb(void *pvt)
ctx->disabled_until = 0;
- be_req = talloc_zero(NULL, struct be_req);
- be_req->be_ctx = ctx->be_ctx;
- be_req->fn = ipa_subdom_be_req_callback;
+ be_req = be_req_create(ctx, NULL, ctx->be_ctx,
+ ipa_subdom_be_req_callback, NULL);
ipa_subdomains_retrieve(ctx, be_req);