summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-07-06 07:37:41 +0000
committerAndrew Bartlett <abartlet@samba.org>2006-07-06 07:37:41 +0000
commitbd1f092f2772aad402174c99a368b0dd1cc6e314 (patch)
treef0851d7211af4e16ae7a9a8b3c622ac78d154836
parent18220d5c9f7f2daf7da7be888071a4370fbceb5b (diff)
downloadsamba-bd1f092f2772aad402174c99a368b0dd1cc6e314.tar.gz
samba-bd1f092f2772aad402174c99a368b0dd1cc6e314.tar.xz
samba-bd1f092f2772aad402174c99a368b0dd1cc6e314.zip
r16832: I should be more careful (and test!) when trying to make compilers and
static checkers happy... Andrew Bartlett
-rw-r--r--source/lib/ldb/common/ldb_dn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lib/ldb/common/ldb_dn.c b/source/lib/ldb/common/ldb_dn.c
index 0d7a3c61417..bebb6cc9a0c 100644
--- a/source/lib/ldb/common/ldb_dn.c
+++ b/source/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);