diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index b7b488c2e3..7ed47f13ca 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -1889,11 +1889,11 @@ allowed: *currentObject = obj; currentObject = &obj->next_object; - talloc_free(getnc_state->last_dn); - getnc_state->last_dn = ldb_dn_copy(getnc_state, msg->dn); - DEBUG(8,(__location__ ": replicating object %s\n", ldb_dn_get_linearized(msg->dn))); + talloc_free(getnc_state->last_dn); + getnc_state->last_dn = talloc_move(getnc_state, &msg->dn); + talloc_free(msg_res); talloc_free(msg_dn); } |