From bc12d3bccc5617943ea866202f0507d11bebcd81 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 21 May 2006 21:24:11 +0000 Subject: r15786: another fix in rdn_name (This used to be commit 202ce2a947626f51467d5c87dfcdb73852282709) --- source4/lib/ldb/modules/rdn_name.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/modules/rdn_name.c b/source4/lib/ldb/modules/rdn_name.c index 4f0b11cd51..18ad625ee2 100644 --- a/source4/lib/ldb/modules/rdn_name.c +++ b/source4/lib/ldb/modules/rdn_name.c @@ -152,7 +152,9 @@ static int rdn_name_add_async(struct ldb_module *module, struct ldb_request *req return LDB_ERR_OPERATIONS_ERROR; } - msg = ldb_msg_copy_shallow(down_req, req->op.add.message); + *down_req = *req; + + down_req->op.add.message = msg = ldb_msg_copy_shallow(down_req, req->op.add.message); if (msg == NULL) { return LDB_ERR_OPERATIONS_ERROR; } @@ -199,15 +201,6 @@ static int rdn_name_add_async(struct ldb_module *module, struct ldb_request *req } } - down_req->op.add.message = msg; - - down_req->controls = req->controls; - down_req->creds = req->creds; - - down_req->async.context = req->async.context; - down_req->async.callback = req->async.callback; - down_req->async.timeout = req->async.timeout; - /* go on with the call chain */ ret = ldb_next_request(module, down_req); -- cgit