diff options
author | Sumit Bose <sbose@redhat.com> | 2013-05-21 11:26:01 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-22 15:30:58 +0200 |
commit | d64f5d53213a34342332ef79b333b3202f95e6bd (patch) | |
tree | c47126747e2bc01c2e99e1a4f7709469f1c34e82 | |
parent | 574a1c20f114851071ae74112b34488c3d1aeeb3 (diff) | |
download | sssd-d64f5d53213a34342332ef79b333b3202f95e6bd.tar.gz sssd-d64f5d53213a34342332ef79b333b3202f95e6bd.tar.bz2 sssd-d64f5d53213a34342332ef79b333b3202f95e6bd.zip |
Fix return code for AD subdomain request
-rw-r--r-- | src/providers/ad/ad_subdomains.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c index 2ad318f6..51c69554 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); |