summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-09 08:32:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:21 -0500
commit442f5526a043be624e35c8ab2de60de2630cd619 (patch)
tree3888d6a52fd50d5e65ea488718305541fc06bf38 /source3
parentc9b797b3baadf2ab1d385fc7c83d1770309e5eb7 (diff)
downloadsamba-442f5526a043be624e35c8ab2de60de2630cd619.tar.gz
samba-442f5526a043be624e35c8ab2de60de2630cd619.tar.bz2
samba-442f5526a043be624e35c8ab2de60de2630cd619.zip
r19193: merge from samba4:
fixed another checker warning and a possible error on allocation failure metze (This used to be commit d64583a763ffcff27f0bd6761196f7d554d44849)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/ldb/ldb_tdb/ldb_index.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/ldb/ldb_tdb/ldb_index.c b/source3/lib/ldb/ldb_tdb/ldb_index.c
index 59c1645ba8..8a9a82a98c 100644
--- a/source3/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source3/lib/ldb/ldb_tdb/ldb_index.c
@@ -232,13 +232,15 @@ static int ltdb_index_dn_simple(struct ldb_module *module,
list->dn = talloc_array(list, char *, el->num_values);
if (!list->dn) {
- break;
+ talloc_free(msg);
+ return -1;
}
for (j=0;j<el->num_values;j++) {
list->dn[list->count] =
talloc_strdup(list->dn, (char *)el->values[j].data);
if (!list->dn[list->count]) {
+ talloc_free(msg);
return -1;
}
list->count++;