diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-07-06 07:37:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:49 -0500 |
commit | 1f1b34b3e815b0a6f502c7ae6e98887e280e7040 (patch) | |
tree | 90e4532b5cafbcd3eaa253076f88e5df52eacb83 /source4/lib/ldb | |
parent | ebea352760482081411dbdfb821c381a9ed276eb (diff) | |
download | samba-1f1b34b3e815b0a6f502c7ae6e98887e280e7040.tar.gz samba-1f1b34b3e815b0a6f502c7ae6e98887e280e7040.tar.bz2 samba-1f1b34b3e815b0a6f502c7ae6e98887e280e7040.zip |
r16832: I should be more careful (and test!) when trying to make compilers and
static checkers happy...
Andrew Bartlett
(This used to be commit ae7ec0d553650b2a90fac8b7564b8f986e3e4288)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb_dn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 0d7a3c6141..bebb6cc9a0 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -578,7 +578,9 @@ struct ldb_dn *ldb_dn_casefold(struct ldb_context *ldb, const struct ldb_dn *edn if (edn == NULL) return NULL; cedn = ldb_dn_new(ldb); - return NULL; + if (!cedn) { + return NULL; + } cedn->comp_num = edn->comp_num; cedn->components = talloc_array(cedn, struct ldb_dn_component, edn->comp_num); |