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:
236669c
)
r19068: Fix a potential NULL dereference
author
Volker Lendecke
<vlendec@samba.org>
Wed, 4 Oct 2006 19:03:29 +0000
(19:03 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:33 +0000
(14:20 -0500)
(This used to be commit
2dff8ee8cc8b9faf3fbec46d458d6de214622afc
)
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 a0f48723ab9a71007dca8fb923e96e26558fe468..204dd3b46260d76c4b39aa7b8a2fc3d14627f4f3 100644
(file)
--- a/
source4/lib/ldb/common/ldb_dn.c
+++ b/
source4/lib/ldb/common/ldb_dn.c
@@
-345,6
+345,10
@@
struct ldb_dn *ldb_dn_explode(void *mem_ctx, const char *dn)
/* Allocate a structure to hold the exploded DN */
edn = ldb_dn_new(mem_ctx);
+ if (edn == NULL) {
+ return NULL;
+ }
+
pdn = NULL;
/* Empty DNs */