From dfee332521b1ba63bf13468e66038cf2a9916586 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 26 Sep 2013 10:10:39 +0200 Subject: [PATCH 3/3] Do not return DP_ERR_FATAL in case of success --- 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 16e679c..307fa38 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -872,6 +872,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; @@ -956,7 +957,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); } -- 1.7.7.6