git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d4aa6e
)
ldb_dn: free dn components on explode failure
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Thu, 7 Mar 2019 23:12:00 +0000
(12:12 +1300)
committer
Noel Power
<npower@samba.org>
Tue, 6 Aug 2019 17:00:38 +0000
(17:00 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
lib/ldb/common/ldb_dn.c
patch
|
blob
|
history
diff --git
a/lib/ldb/common/ldb_dn.c
b/lib/ldb/common/ldb_dn.c
index eccb4a0ce4b510501253108541f03967fd37c68a..23a817edf65693bc1874a1c2011e8cb7c4575ad7 100644
(file)
--- 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;