From eee64196a3b6433606a436bba3ab36896fdada18 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 25 Nov 2006 17:19:42 +0000 Subject: r19901: Fix a potential NULL dereference (This used to be commit 75e6fb9654f10a076ed49b0582b40368e149d30a) --- source4/lib/ldb/common/ldb_dn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/lib/ldb/common/ldb_dn.c') diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 38d9ea3aff..f76c3441e7 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -251,6 +251,9 @@ static bool ldb_dn_explode(struct ldb_dn *dn) /* Components data space is allocated here once */ data = talloc_array(dn->components, char, strlen(dn->linearized) + 1); + if (!data) { + return false; + } p = dn->linearized; in_attr = true; -- cgit