summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 19:03:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:33 -0500
commit19df9091358092adf2f6df48783a4f91bc573a5f (patch)
treee8e6c038df29eeb07f9bae8dba76a74772a264c7 /source4/lib
parent236669c9b25242d55cf17d9ff49a2e82e99c9967 (diff)
downloadsamba-19df9091358092adf2f6df48783a4f91bc573a5f.tar.gz
samba-19df9091358092adf2f6df48783a4f91bc573a5f.tar.bz2
samba-19df9091358092adf2f6df48783a4f91bc573a5f.zip
r19068: Fix a potential NULL dereference
(This used to be commit 2dff8ee8cc8b9faf3fbec46d458d6de214622afc)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index a0f48723ab..204dd3b462 100644
--- 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 */