diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-11-22 08:25:01 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-22 10:40:15 -0500 |
commit | 98e0f08e3de3f8f035790adcd614cff6bf6dd34d (patch) | |
tree | 39a5ca45a717512dcc6661c5105198ed0e85e79d /src/providers | |
parent | ac3a1f3da772cf101101c31675c63dc3549b21b5 (diff) | |
download | sssd-98e0f08e3de3f8f035790adcd614cff6bf6dd34d.tar.gz sssd-98e0f08e3de3f8f035790adcd614cff6bf6dd34d.tar.bz2 sssd-98e0f08e3de3f8f035790adcd614cff6bf6dd34d.zip |
Fixed unchecked value of setenv() in check_and_export_options()
https://fedorahosted.org/sssd/ticket/1080
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c index 4675e0a1..a065727a 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -171,9 +171,12 @@ errno_t check_and_export_options(struct dp_option *opts, } if (dp_opt_get_bool(opts, KRB5_CANONICALIZE)) { - setenv(SSSD_KRB5_CANONICALIZE, "true", 1); + ret = setenv(SSSD_KRB5_CANONICALIZE, "true", 1); } else { - setenv(SSSD_KRB5_CANONICALIZE, "false", 1); + ret = setenv(SSSD_KRB5_CANONICALIZE, "false", 1); + } + if (ret != EOK) { + DEBUG(2, ("setenv [%s] failed.\n", SSSD_KRB5_CANONICALIZE)); } dummy = dp_opt_get_cstring(opts, KRB5_KDC); |