diff options
author | Sumit Bose <sbose@redhat.com> | 2013-09-26 10:10:39 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-27 10:33:25 +0200 |
commit | ce29aa8998332fd3c2e4e4b81e7302d41c461893 (patch) | |
tree | d74947ff5a275a81c02204d79875d808e3a84c3d /src/providers/ipa | |
parent | bbd43fbcd8f70eedeac4e4ce01c36256cde82ab1 (diff) | |
download | sssd-ce29aa8998332fd3c2e4e4b81e7302d41c461893.tar.gz sssd-ce29aa8998332fd3c2e4e4b81e7302d41c461893.tar.bz2 sssd-ce29aa8998332fd3c2e4e4b81e7302d41c461893.zip |
Do not return DP_ERR_FATAL in case of success
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_subdomains.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index ab0fdf65..bfbdabf3 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -880,6 +880,7 @@ static void ipa_subdomains_handler_done(struct tevent_req *req) struct ipa_subdomains_req_ctx *ctx; struct sss_domain_info *domain; bool refresh_has_changes = false; + int dp_error = DP_ERR_FATAL; ctx = tevent_req_callback_data(req, struct ipa_subdomains_req_ctx); domain = ctx->sd_ctx->be_ctx->domain; @@ -964,7 +965,10 @@ static void ipa_subdomains_handler_done(struct tevent_req *req) } done: - be_req_terminate(ctx->be_req, DP_ERR_FATAL, ret, NULL); + if (ret == EOK) { + dp_error = DP_ERR_OK; + } + be_req_terminate(ctx->be_req, dp_error, ret, NULL); } |