From 95e347a2d05d3b2c01655e02fd9eb0f5e4659ec1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 14 Feb 2011 13:08:44 +1100 Subject: s4-ldb: fixed a uninitialised el->flags in ldb_tdb this caused an intermittent failure in some tests Pair-Programmed-With: Andrew Bartlett --- source4/lib/ldb/ldb_tdb/ldb_tdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/lib/ldb/ldb_tdb') 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; -- cgit