summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-11-20 12:43:26 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-20 23:28:28 +0100
commitdb15d9fc8252f05d705083b4798a492566284293 (patch)
tree6a7aa14e37d191834bd7e125723a67111b190796
parent8455d5ab61184e0d126fc074a9ce6e98391eb909 (diff)
downloadsssd-db15d9fc8252f05d705083b4798a492566284293.tar.gz
sssd-db15d9fc8252f05d705083b4798a492566284293.tar.bz2
sssd-db15d9fc8252f05d705083b4798a492566284293.zip
fix SIGSEGV in IPA provider when ldap_sasl_authid is not set
https://fedorahosted.org/sssd/ticket/1657 IPA_HOSTNAME is not stored in ipa_opts->id options so it the option was always NULL here. This caused SIGSEGV when accessed by strchr() in subsequent function.
-rw-r--r--src/providers/ipa/ipa_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index 4c68f61d..eb384a1f 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -244,7 +244,7 @@ int ipa_get_id_options(struct ipa_options *ipa_opts,
}
ret = sdap_set_sasl_options(ipa_opts->id,
- dp_opt_get_string(ipa_opts->id->basic,
+ dp_opt_get_string(ipa_opts->basic,
IPA_HOSTNAME),
dp_opt_get_string(ipa_opts->id->basic,
SDAP_KRB5_REALM),