summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-03-08 12:12:00 +1300
committerKarolin Seeger <kseeger@samba.org>2019-09-04 08:31:24 +0000
commit7cf6afba65641f48a5e2c326464fd97fd9f4173c (patch)
tree81f6876b7f8ba5295b33d638e5d921f457fcca1a /lib
parent0358b3f9bc1e557a639ec63670d8c29c135e54f5 (diff)
downloadsamba-7cf6afba65641f48a5e2c326464fd97fd9f4173c.tar.gz
ldb_dn: free dn components on explode failure
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org> (cherry picked from commit b136f153b83d80a91ec9d5350fdf08412d881964)
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/common/ldb_dn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/common/ldb_dn.c b/lib/ldb/common/ldb_dn.c
index eccb4a0ce4b..23a817edf65 100644
--- a/lib/ldb/common/ldb_dn.c
+++ b/lib/ldb/common/ldb_dn.c
@@ -340,7 +340,7 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
/* Components data space is allocated here once */
data = talloc_array(dn->components, char, strlen(parse_dn) + 1);
if (!data) {
- return false;
+ goto failed;
}
p = parse_dn;