summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-11-11 13:39:43 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2015-12-10 12:28:44 +0100
commit4afc1f2b6ca066d30d2be5ccda9fa760b5a6016e (patch)
treeb5283ebaa29bb4b9a16ff4d90727b75bb4425e7b /src/providers/ipa
parentf20c082881ba287c5de415b983c1e54fee987b4b (diff)
downloadsssd-4afc1f2b6ca066d30d2be5ccda9fa760b5a6016e.tar.gz
sssd-4afc1f2b6ca066d30d2be5ccda9fa760b5a6016e.tar.xz
sssd-4afc1f2b6ca066d30d2be5ccda9fa760b5a6016e.zip
DP: Reduce code duplication in the callback handlers
Instead of calling sbus_request_return_and_finish() directly with the same checks copied over, add a be_sbus_reply() helper instead. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_subdomains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 70a293375..b849a7b3d 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -1342,7 +1342,7 @@ static void ipa_subdom_online_cb(void *pvt)
refresh_interval = ctx->be_ctx->domain->subdomain_refresh_interval;
- be_req = be_req_create(ctx, NULL, ctx->be_ctx,
+ be_req = be_req_create(ctx, NULL, ctx->be_ctx, "IPA subdomains",
ipa_subdom_be_req_callback, NULL);
if (be_req == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "be_req_create() failed.\n");