r11957: fixed up code meant for debugging
authorAndrew Tridgell <tridge@samba.org>
Tue, 29 Nov 2005 10:12:01 +0000 (10:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:51 +0000 (13:46 -0500)
source/dsdb/samdb/ldb_modules/rootdse.c

index b0a21efea4bf5047fd55c8589b35b127e07b19fb..df12011d8972a4d0b2b37f76464212097f82b73c 100644 (file)
@@ -74,8 +74,8 @@ failed:
 */
 static int rootdse_search_bytree(struct ldb_module *module, struct ldb_request *req)
 {
-//     struct ldb_request r = *req;
-       struct ldb_search *s = &req->op.search;
+       struct ldb_request r = *req;
+       struct ldb_search *s = &r.op.search;
        int ret;
        TALLOC_CTX *tmp_ctx;
 
@@ -97,7 +97,7 @@ static int rootdse_search_bytree(struct ldb_module *module, struct ldb_request *
        }
 
        /* grab the static contents of the record */
-       ret = ldb_next_request(module, req);
+       ret = ldb_next_request(module, &r);
 
        req->op.search.res = s->res;