summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-26 13:00:49 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-02 08:10:18 -0400
commit8a90e3ce2d2e47ea8c031493e9aaaf551aaa30ad (patch)
treeb5bde6fba102ba732dd1fcb274099466059c6059
parent6d7781a0cfef141a647436cc0cc3e339fd3f413d (diff)
downloadsssd-8a90e3ce2d2e47ea8c031493e9aaaf551aaa30ad.tar.gz
sssd-8a90e3ce2d2e47ea8c031493e9aaaf551aaa30ad.tar.xz
sssd-8a90e3ce2d2e47ea8c031493e9aaaf551aaa30ad.zip
DP: return correct error message when subdomains back end target is not configured
The done handler uses the value of status, not ret.
-rw-r--r--src/providers/data_provider_be.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 345dab237..b9234d573 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -416,7 +416,7 @@ static int be_get_subdomains(DBusMessage *message, struct sbus_connection *conn)
/* return an error if corresponding backend target is not configured */
if (becli->bectx->bet_info[BET_SUBDOMAINS].bet_ops == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, ("Undefined backend target.\n"));
- ret = ENODEV;
+ status = ENODEV;
goto done;
}