summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-07-06 07:37:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:49 -0500
commit1f1b34b3e815b0a6f502c7ae6e98887e280e7040 (patch)
tree90e4532b5cafbcd3eaa253076f88e5df52eacb83
parentebea352760482081411dbdfb821c381a9ed276eb (diff)
downloadsamba-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)
-rw-r--r--source4/lib/ldb/common/ldb_dn.c4
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);