git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebea352
)
r16832: I should be more careful (and test!) when trying to make compilers and
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 6 Jul 2006 07:37:41 +0000
(07:37 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:09:49 +0000
(14:09 -0500)
static checkers happy...
Andrew Bartlett
(This used to be commit
ae7ec0d553650b2a90fac8b7564b8f986e3e4288
)
source4/lib/ldb/common/ldb_dn.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_dn.c
b/source4/lib/ldb/common/ldb_dn.c
index 0d7a3c6141702caff8a04afb5e05dab26768769a..bebb6cc9a0ce4f07cf249586e5479772e867e00b 100644
(file)
--- 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);