summaryrefslogtreecommitdiff
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-12-14 10:48:52 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-14 17:13:29 -0500
commit223769ba5c8d6e1ef3deb35c9b397387968e1417 (patch)
tree99f27d83b87dc061af0a67aa4469c923cb33f59b /src/providers/krb5
parentb1df1383dcefa38f9f5d52be3a11e8bb1f465bbf (diff)
downloadsssd-223769ba5c8d6e1ef3deb35c9b397387968e1417.tar.gz
sssd-223769ba5c8d6e1ef3deb35c9b397387968e1417.tar.bz2
sssd-223769ba5c8d6e1ef3deb35c9b397387968e1417.zip
Fix incorrect return value on failure in check_and_export_options()
https://fedorahosted.org/sssd/ticket/722
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c
index 9d114e34..434fc7fb 100644
--- a/src/providers/krb5/krb5_common.c
+++ b/src/providers/krb5/krb5_common.c
@@ -85,6 +85,7 @@ errno_t check_and_export_lifetime(struct dp_option *opts, const int opt_id,
ret = setenv(env_name, str, 1);
if (ret != EOK) {
+ ret = errno;
DEBUG(2, ("setenv [%s] failed.\n", env_name));
goto done;
}