summaryrefslogtreecommitdiff
path: root/server/util/service_helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/util/service_helpers.c')
-rw-r--r--server/util/service_helpers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/util/service_helpers.c b/server/util/service_helpers.c
index 1630946f..0c5661b2 100644
--- a/server/util/service_helpers.c
+++ b/server/util/service_helpers.c
@@ -33,7 +33,8 @@
struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct confdb_ctx *cdb,
- struct sbus_method *methods)
+ struct sbus_method *methods,
+ sbus_conn_destructor_fn destructor)
{
struct service_sbus_ctx *ss_ctx;
struct sbus_method_ctx *sm_ctx;
@@ -61,7 +62,7 @@ struct service_sbus_ctx *sssd_service_sbus_init(TALLOC_CTX *mem_ctx,
ret = sbus_new_connection(ss_ctx, ss_ctx->ev,
sbus_address, &ss_ctx->scon_ctx,
- NULL);
+ destructor);
if (ret != EOK) goto error;
conn = sbus_get_connection(ss_ctx->scon_ctx);