s4-drs: fixed usage of ldb_dn_new()
authorAndrew Tridgell <tridge@samba.org>
Fri, 8 Jan 2010 22:03:45 +0000 (09:03 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 8 Jan 2010 23:15:12 +0000 (10:15 +1100)
source4/rpc_server/drsuapi/getncchanges.c

index b9ba6473a556da05347fbe7670d147e1d3b300e3..07e7972dfa29b023cd4980458d4d9e87cc7722b8 100644 (file)
@@ -592,7 +592,7 @@ static WERROR getncchanges_rid_alloc(struct drsuapi_bind_state *b_state,
                return WERR_DS_DRA_INTERNAL_ERROR;
        }
 
                return WERR_DS_DRA_INTERNAL_ERROR;
        }
 
-       req_dn = ldb_dn_new(ldb, mem_ctx, req8->naming_context->dn);
+       req_dn = ldb_dn_new(mem_ctx, ldb, req8->naming_context->dn);
        if (!req_dn ||
            !ldb_dn_validate(req_dn) ||
            ldb_dn_compare(req_dn, rid_manager_dn) != 0) {
        if (!req_dn ||
            !ldb_dn_validate(req_dn) ||
            ldb_dn_compare(req_dn, rid_manager_dn) != 0) {