summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-14 13:08:44 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-14 17:55:09 +1100
commit95e347a2d05d3b2c01655e02fd9eb0f5e4659ec1 (patch)
treec1d247dde9c9c338ccb13e50b1bee86933e3bf05 /source4
parent12a1e02002f7709c8d5a7fa9e5b6de829b9bee41 (diff)
downloadsamba-95e347a2d05d3b2c01655e02fd9eb0f5e4659ec1.tar.gz
samba-95e347a2d05d3b2c01655e02fd9eb0f5e4659ec1.tar.bz2
samba-95e347a2d05d3b2c01655e02fd9eb0f5e4659ec1.zip
s4-ldb: fixed a uninitialised el->flags in ldb_tdb
this caused an intermittent failure in some tests Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 831361c547..2f7f222086 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -705,8 +705,7 @@ int ltdb_modify_internal(struct ldb_module *module,
ret = LDB_ERR_OTHER;
goto done;
}
- el->name = msg->elements[i].name;
- el->num_values = msg->elements[i].num_values;
+ *el = msg->elements[i];
el->values = talloc_array(el, struct ldb_val, el->num_values);
if (el->values == NULL) {
ret = LDB_ERR_OTHER;