URL:
https://github.com/SSSD/sssd/pull/359
Title: #359: CONFDB: Do not crash with an invalid domain_type value
fidencio commented:
"""
Hmm. Nice catch. @lslebodn.
@jhrozek:
```
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
index 039d0fd8d..1db5a4862 100644
--- a/src/confdb/confdb.c
+++ b/src/confdb/confdb.c
@@ -1345,6 +1345,7 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
} else {
DEBUG(SSSDBG_FATAL_FAILURE,
"Invalid value for %s\n", CONFDB_DOMAIN_CASE_SENSITIVE);
+ ret = EINVAL;
goto done;
}
} else {
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/359#issuecomment-325888656