summaryrefslogtreecommitdiffstats
path: root/src/providers/ad
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-05-21 11:26:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-22 15:30:58 +0200
commitd64f5d53213a34342332ef79b333b3202f95e6bd (patch)
treec47126747e2bc01c2e99e1a4f7709469f1c34e82 /src/providers/ad
parent574a1c20f114851071ae74112b34488c3d1aeeb3 (diff)
downloadsssd-d64f5d53213a34342332ef79b333b3202f95e6bd.tar.gz
sssd-d64f5d53213a34342332ef79b333b3202f95e6bd.tar.xz
sssd-d64f5d53213a34342332ef79b333b3202f95e6bd.zip
Fix return code for AD subdomain request
Diffstat (limited to 'src/providers/ad')
-rw-r--r--src/providers/ad/ad_subdomains.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
index 2ad318f63..51c695541 100644
--- a/src/providers/ad/ad_subdomains.c
+++ b/src/providers/ad/ad_subdomains.c
@@ -295,6 +295,7 @@ static void ad_subdomains_get_netlogon_done(struct tevent_req *req)
enum ndr_err_code ndr_err;
struct ndr_pull *ndr_pull = NULL;
struct netlogon_samlogon_response response;
+ int dp_error = DP_ERR_FATAL;
ctx = tevent_req_callback_data(req, struct ad_subdomains_req_ctx);
@@ -379,8 +380,9 @@ done:
if (ret == EOK) {
ctx->sd_ctx->last_refreshed = time(NULL);
+ dp_error = DP_ERR_OK;
}
- be_req_terminate(ctx->be_req, DP_ERR_FATAL, ret, NULL);
+ be_req_terminate(ctx->be_req, dp_error, ret, NULL);
}
static void ad_subdom_online_cb(void *pvt);