From ce29aa8998332fd3c2e4e4b81e7302d41c461893 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 26 Sep 2013 10:10:39 +0200 Subject: Do not return DP_ERR_FATAL in case of success --- src/providers/ipa/ipa_subdomains.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit