summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-12-04 11:46:07 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-04 12:26:20 +0100
commit9a0bd46cd3094ad18584b83cd7a7bf5a096dac0f (patch)
tree26b642a88ad774c615282185db329a4777112ba5
parent457f7bbf42a898944e3759b9bf18e1c1ec73a7a0 (diff)
downloadsssd-9a0bd46cd3094ad18584b83cd7a7bf5a096dac0f.tar.gz
sssd-9a0bd46cd3094ad18584b83cd7a7bf5a096dac0f.tar.bz2
sssd-9a0bd46cd3094ad18584b83cd7a7bf5a096dac0f.zip
do not crash when id_provider is not set
https://fedorahosted.org/sssd/ticket/1686
-rw-r--r--src/monitor/monitor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 4dd14282..69180cd8 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -855,6 +855,12 @@ static errno_t add_implicit_services(struct confdb_ctx *cdb, TALLOC_CTX *mem_ctx
ret = confdb_get_string(cdb, tmp_ctx, conf_path,
CONFDB_DOMAIN_ID_PROVIDER, NULL, &id_provider);
if (ret == EOK) {
+ if (id_provider == NULL) {
+ DEBUG(SSSDBG_OP_FAILURE, ("id_provider is not set for "
+ "domain [%s], trying next domain.\n", domain_names[c]));
+ continue;
+ }
+
if (strcasecmp(id_provider, "IPA") == 0) {
add_pac = true;
}