diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-11 17:26:19 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 22:17:34 +0100 |
commit | 03abdaa21ecf562b714f204ca42379ff08626f75 (patch) | |
tree | 0b6a9d40fc90292d4cadd4c738b8cda8a5dacd06 /src/providers/ldap/sdap_autofs.c | |
parent | 99151f2217ddaa179543b89b49f836f29f7dcd2a (diff) | |
download | sssd-03abdaa21ecf562b714f204ca42379ff08626f75.tar.gz sssd-03abdaa21ecf562b714f204ca42379ff08626f75.tar.xz sssd-03abdaa21ecf562b714f204ca42379ff08626f75.zip |
Add be_req_get_be_ctx() helper.
In preparation for making be_req opaque
Diffstat (limited to 'src/providers/ldap/sdap_autofs.c')
-rw-r--r-- | src/providers/ldap/sdap_autofs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_autofs.c b/src/providers/ldap/sdap_autofs.c index 6fb640996..2c8a238ab 100644 --- a/src/providers/ldap/sdap_autofs.c +++ b/src/providers/ldap/sdap_autofs.c @@ -78,6 +78,7 @@ static void sdap_autofs_handler_done(struct tevent_req *req); void sdap_autofs_handler(struct be_req *be_req) { + struct be_ctx *be_ctx = be_req_get_be_ctx(be_req); struct sdap_id_ctx *id_ctx; struct be_autofs_req *autofs_req; struct tevent_req *req; @@ -85,7 +86,7 @@ void sdap_autofs_handler(struct be_req *be_req) DEBUG(SSSDBG_TRACE_INTERNAL, ("sdap autofs handler called\n")); - id_ctx = talloc_get_type(be_req->be_ctx->bet_info[BET_AUTOFS].pvt_bet_data, + id_ctx = talloc_get_type(be_ctx->bet_info[BET_AUTOFS].pvt_bet_data, struct sdap_id_ctx); if (be_is_offline(id_ctx->be)) { @@ -106,7 +107,7 @@ void sdap_autofs_handler(struct be_req *be_req) } } - req = sdap_autofs_get_map_send(be_req, be_req->be_ctx->ev, + req = sdap_autofs_get_map_send(be_req, be_ctx->ev, id_ctx, autofs_req->mapname); if (!req) { ret = ENOMEM; |