diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2017-10-12 10:08:21 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-10-18 21:06:15 +0200 |
commit | 60ec0db015c354349af445e0ec63f8b8421343fe (patch) | |
tree | 8362aefd99bf76ba5fe36c9430a6bbfaddc8422d | |
parent | c2dec0dc740ba426f26563563c0aea3a38f3c3c1 (diff) | |
download | sssd-60ec0db015c354349af445e0ec63f8b8421343fe.tar.gz sssd-60ec0db015c354349af445e0ec63f8b8421343fe.tar.xz sssd-60ec0db015c354349af445e0ec63f8b8421343fe.zip |
DP: Fix the output type used in dp_req_recv_ptr()
Related: https://pagure.io/SSSD/sssd/issue/3307
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
-rw-r--r-- | src/providers/data_provider_be.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index a1509cfd2..e564bc11d 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -249,7 +249,7 @@ static errno_t be_check_online_request(struct be_ctx *be_ctx) static void be_check_online_done(struct tevent_req *req) { struct be_ctx *be_ctx; - struct dp_reply_std reply; + struct dp_reply_std *reply; errno_t ret; be_ctx = tevent_req_callback_data(req, struct be_ctx); @@ -260,7 +260,7 @@ static void be_check_online_done(struct tevent_req *req) goto done; } - switch (reply.dp_error) { + switch (reply->dp_error) { case DP_ERR_OK: DEBUG(SSSDBG_TRACE_FUNC, "Backend is online\n"); break; @@ -275,7 +275,7 @@ static void be_check_online_done(struct tevent_req *req) be_ctx->check_online_ref_count--; - if (reply.dp_error != DP_ERR_OK && be_ctx->check_online_ref_count > 0) { + if (reply->dp_error != DP_ERR_OK && be_ctx->check_online_ref_count > 0) { ret = be_check_online_request(be_ctx); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to create check online req.\n"); @@ -286,8 +286,8 @@ static void be_check_online_done(struct tevent_req *req) done: be_ctx->check_online_ref_count = 0; - if (reply.dp_error != DP_ERR_OFFLINE) { - if (reply.dp_error != DP_ERR_OK) { + if (reply->dp_error != DP_ERR_OFFLINE) { + if (reply->dp_error != DP_ERR_OK) { reset_fo(be_ctx); } be_reset_offline(be_ctx); |