git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correctly check for errors in strlower_m() returns.
[samba.git]
/
source3
/
passdb
/
pdb_ipa.c
diff --git
a/source3/passdb/pdb_ipa.c
b/source3/passdb/pdb_ipa.c
index bbd3339f2f9a29aed7fa20ede2923d6cd9cb0447..c0eb48d4489da31629a0fd11b0353df0728e7002 100644
(file)
--- a/
source3/passdb/pdb_ipa.c
+++ b/
source3/passdb/pdb_ipa.c
@@
-787,7
+787,9
@@
static struct pdb_domain_info *pdb_ipasam_get_domain_info(struct pdb_methods *pd
if (info->dns_domain == NULL) {
goto fail;
}
- strlower_m(info->dns_domain);
+ if (!strlower_m(info->dns_domain)) {
+ goto fail;
+ }
info->dns_forest = talloc_strdup(info, info->dns_domain);
/* we expect a domain SID to have 4 sub IDs */