diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-07-06 07:37:41 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2006-07-06 07:37:41 +0000 |
commit | bd1f092f2772aad402174c99a368b0dd1cc6e314 (patch) | |
tree | f0851d7211af4e16ae7a9a8b3c622ac78d154836 | |
parent | 18220d5c9f7f2daf7da7be888071a4370fbceb5b (diff) | |
download | samba-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.c | 4 |
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); |