summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 18:22:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:07 -0500
commit101428b7e5e29d856c7500f8aeae5411c75c037a (patch)
tree353932c66102e7624faed7e8069bf19e7a60eba7 /source3/lib
parent7bce558fec4b50aaaf61894602955488603988cd (diff)
downloadsamba-101428b7e5e29d856c7500f8aeae5411c75c037a.tar.gz
samba-101428b7e5e29d856c7500f8aeae5411c75c037a.tar.bz2
samba-101428b7e5e29d856c7500f8aeae5411c75c037a.zip
r19067: Fix a potential NULL dereference
(This used to be commit 6a8937ed03f0ee62eb81da798e0c38b405d44731)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ldb/common/ldb_dn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/ldb/common/ldb_dn.c b/source3/lib/ldb/common/ldb_dn.c
index a0f48723ab..204dd3b462 100644
--- a/source3/lib/ldb/common/ldb_dn.c
+++ b/source3/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 */